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
In the following code:
record Foo do def foo return true ? 1 : 2 end end puts Foo.new.foo
The compiler yields:
Syntax error in src/foo.cr:4: 'else' is useless without 'rescue'
Note that if the return keyword is removed (which is optional in this example), the code compiles fine.
return
Found in Crystal 0.22.0 [3c71228] (2017-04-20) LLVM 3.5.0, on the crystallang/crystal:0.20.0 docker image.
Crystal 0.22.0 [3c71228] (2017-04-20) LLVM 3.5.0
The text was updated successfully, but these errors were encountered:
Parser: correct accept_with_maybe_begin_end to wrap if/unless/while/u…
40f99a9
…ntil Fixed crystal-lang#4488
3c3edda
8f1931c
…ntil (#4489) Fixed #4488
Successfully merging a pull request may close this issue.
In the following code:
The compiler yields:
Note that if the
return
keyword is removed (which is optional in this example), the code compiles fine.Found in
Crystal 0.22.0 [3c71228] (2017-04-20) LLVM 3.5.0
, on the crystallang/crystal:0.20.0 docker image.The text was updated successfully, but these errors were encountered: