Interactions between functors and constaint guards #1444
Labels
bug
Something not working correctly
parameterized modules
Related to Cryptol's parameterized modules
type-guards
Investigate: There appear to be some issues related to
evalType
being called on constraints, which leads to `panicIssue: when instantiating a functor that contains constraint guards, it is possible that some of the constraint guards become
impossible (e.g., if they depend on the parameter). This means that the types corresponding to the functions implementing them
would contain an impossible assumption, which is currently represented with
Error
, andevalType
is not happy with that.We know that such functions will not be called as they are only called if the guard is true (which it will not) but it looks like our evaluator
eagerly evalutes such types.
The text was updated successfully, but these errors were encountered: