-
Notifications
You must be signed in to change notification settings - Fork 123
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
doCheckType panic #1050
Comments
Yeah, the example here mistakenly uses braces instead of parens. |
Specifically,
should be
|
This seems like a pretty easy mistake to make. I'm surprised we haven't run into this before. |
Oh man, that is a little embarrassing. The panic through me completely off from looking where I needed to. So this issue becomes a request for a better error message when one uses curly brackets instead of parentheses as I did. |
I received this output from Cryptol 2.10.0.
$ cryptol bug.cry
┏━╸┏━┓╻ ╻┏━┓╺┳╸┏━┓╻
┃ ┣┳┛┗┳┛┣━┛ ┃ ┃ ┃┃
┗━╸╹┗╸ ╹ ╹ ╹ ┗━┛┗━╸
version 2.10.0
https://cryptol.net :? for help
Loading module Cryptol
Loading module bug
cryptol: You have encountered a bug in Cryptol's implementation.
*** Please create an issue at https://github.com/GaloisInc/cryptol/issues
%< ---------------------------------------------------
Revision: 3cab6e6
Branch: release-2.10.0 (uncommited files present)
Location: doCheckType
Message: TTyApp found when kind checking, but it should have been eliminated already
CallStack (from HasCallStack):
panic, called at src/Cryptol/Utils/Panic.hs:21:9 in cryptol-2.10.0-inplace:Cryptol.Utils.Panic
panic, called at src/Cryptol/TypeCheck/Kind.hs:391:24 in cryptol-2.10.0-inplace:Cryptol.TypeCheck.Kind
%< ---------------------------------------------------
$
bug.cry.txt
The text was updated successfully, but these errors were encountered: