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
Trying to upgrade to newer civet version (from 0.6.x), I get some errors in my code, like this won't parse anymore
class A fn(i: number): string if i < 10 "a" else # <--- parse error here "b"
The same thing parses fine outside of a class
fn := (i: number) : string => if i < 10 "a" else "b"
or using do
do
class A fn(i: number) : string do if i < 10 "a" else "b"
The text was updated successfully, but these errors were encountered:
The same thing parses fine outside of a class fn := (i: number) : string => if i < 10 "a" else "b"
The reason this works is because it's an arrow. Using a function instead also doesn't parse:
function
function fn(i: number): string if i < 10 "a" else "b"
Sorry, something went wrong.
Type's postfix if must be on the same line
if
3e9fc54
Fixes #1590
edemaine
Successfully merging a pull request may close this issue.
Trying to upgrade to newer civet version (from 0.6.x), I get some errors in my code, like this won't parse anymore
The same thing parses fine outside of a class
or using
do
The text was updated successfully, but these errors were encountered: