We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Reported by @MaxStalker in https://forum.onflow.org/t/breaking-changes-in-cadence-parser/485)
The following code parses and executes successfully:
fun main():Int { return 2 }
However, removing the whitespace between the return type and the opening curly brace results in a parsing error:
pub fun main():Int{ return 2 }
Parsing failed: unexpected token: got decimal integer, expected ',' or '}'
The second example should parse like the first.
The text was updated successfully, but these errors were encountered:
turbolent
Successfully merging a pull request may close this issue.
(Reported by @MaxStalker in https://forum.onflow.org/t/breaking-changes-in-cadence-parser/485)
Problem
The following code parses and executes successfully:
However, removing the whitespace between the return type and the opening curly brace results in a parsing error:
Acceptance Criteria
The second example should parse like the first.
The text was updated successfully, but these errors were encountered: