Skip to content

Error constraints not sufficiently bubbled up #910

@yav

Description

@yav

The following definition is incorrectly accepted:

f x = x @ (2 /. 2)

Error constraint should never be generalized over, but some how they are.

Main> :t f
f : {n,
     a} ((error: Type 'Rational' is not an integral type.) Integral Rational) =>
      [n]a -> a

Metadata

Metadata

Assignees

Labels

bugSomething not working correctlytypecheckerIssues related to type-checking Cryptol code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions