Skip to content

Naked type application panics #962

@yav

Description

@yav

I got confused with the notation for demonting types and wrote a type application instead, which caused a panic:

Loading module Cryptol
Cryptol> `{1}
cryptol: You have encountered a bug in Cryptol's implementation.
*** Please create an issue at https://github.com/GaloisInc/cryptol/issues

%< --------------------------------------------------- 
  Revision:  a7d352b585507a74440968b3cec46f40b8a047af
  Branch:    master (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.9.1.99-inplace:Cryptol.Utils.Panic
  panic, called at src/Cryptol/TypeCheck/Kind.hs:391:24 in cryptol-2.9.1.99-inplace:Cryptol.TypeCheck.Kind
%< --------------------------------------------------- 

Metadata

Metadata

Assignees

Labels

bugSomething not working correctlylow-hanging fruitFor issues that should be easy to fixparserIssues with lexing or parsing.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions