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
Uh oh!
There was an error while loading. Please reload this page.
-
The function is parsed and checked as expected.
If I move the argument type to the return type position:
It generates this error:
Since
stringis clearly defined, I wonder if this is a parse error andstringis not parsed as a type identifier?Beta Was this translation helpful? Give feedback.
All reactions