-
Notifications
You must be signed in to change notification settings - Fork 2k
Bug: when using (b=1; return) if true followed by any statement #5013
New issue
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
Comments
This bug seems to have been introduced in release 2.0.2 since it was working on 2.0.1. |
The compiler in 2.0.2+ tries to compile |
@zdenko Ah, I tend to forget Coffee doesn't have the HURL type. Anyway, if you add the |
@vendethiel why is this not allowed |
@zdenko What do you suggest it compiles to? |
|
@lydell I think you might be the right person to ask about this. Why can't |
Oh, that's right, we have this syntax. Well, |
@zdenko Sorry, I have no idea why that doesn't compile. Your suggested compilation sounds sensible, though. |
Choose one: is this a bug report or feature request? Bug
Input Code
The code above compiles successfully in the last release, but if you uncomment the last line then it throws "error: cannot use a pure statement in an expression". This used to work but after upgrading to latest CoffeeScript my existing code is broken. Was this change intentional?
The text was updated successfully, but these errors were encountered: