How do you add type annotations to global variables? #1356
Answered
by
aatxe
DavidColson
asked this question in
Q&A
-
With the following example:
this gives the error: Which is to be expected really, it assumes this will be a function call. But I wonder then if you can annotate globals at all? |
Beta Was this translation helpful? Give feedback.
Answered by
aatxe
Jan 19, 2025
Replies: 1 comment
-
You cannot, and there'd be no way for us to add this because |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aatxe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You cannot, and there'd be no way for us to add this because
myglobal: number
is a table lookup with self application already, i.e.myglobal:number