Replies: 1 comment 1 reply
-
I typically add parentheses to function types in return position to make it clear, or create an alias for it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The function is parsed and checked as expected.
If I move the argument type to the return type position:
It generates this error:
Since
string
is clearly defined, I wonder if this is a parse error andstring
is not parsed as a type identifier?Beta Was this translation helpful? Give feedback.
All reactions