-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compiler crash when using a TypeDeclaration in the wrong spot #14298
Labels
Comments
Reduced: def foo(&)
yield
end
foo { x : Int32 }
|
Duplicate of #9124? |
Duplicate of #9124 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this while working on my app. I actually had a typo, but it took me a bit to find it because I kept getting the compile error.
I thought there was an open issue on this already, but searching github for "you've found a bug in the Crystal compiler." only had 1 open issue that was unrelated.
I'm using Crystal 1.10.1, but this happens on 1.11.1 as well.
The text was updated successfully, but these errors were encountered: