-
Notifications
You must be signed in to change notification settings - Fork 126
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
Typecheck panic #1045
Comments
Here's an example of the same crash using only prelude constants, so you don't need to load a file:
|
Using parentheses makes it work, so I'd guess that it probably is a parsing issue.
|
Seems related to #962 |
I had a closer look at the parser rules, and as I understand it's actually parsing |
I think the problem is in the interaction between the parser and this function cryptol/src/Cryptol/Parser/ParserUtils.hs Lines 282 to 310 in 8796390
Input expressions of the form |
Here's an even more direct way to cause a panic:
Basically, it looks like you can crash cryptol by putting one of these |
Here's another one:
|
My guess is that the bug is in |
I don't think |
Cryptol really doesn't like that period after the type assignment. I wonder if it's a parsing issue? This is from the currently nightly.
The text was updated successfully, but these errors were encountered: