How to pass a reference as a function argument ? #4284
Unanswered
martinkirch
asked this question in
Q&A
Replies: 2 comments
-
That looks like a limitation of the typechecker. I created a ticket for it: #4285 Meanwhile, you can try this trick:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
glad to learn that typechecker trick, thanks ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using v2.3, I'm trying to implement a function able to check and update the given reference. A simplified version looks like:
but this results in a type error
I've tried to annotate the argument (
r:ref
orref:ref({title:string, artist:string, rid:int, initial_uri:string})
) but that raised a parse error.Beta Was this translation helpful? Give feedback.
All reactions