You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program type-checks when it shouldn't
type Nat_:
Zero
Succ {x: Unit, pred: Nat_}
type Unit:
Unit
Test1: Nat_ -> (Nat_, Nat_)
Test1 = λx match x {
Nat_/Zero: (Nat_/Zero, Nat_/Zero)
Nat_/Succ: (x.x, x.pred)
}
main = *
We expected a "can't unify (Unit, Nat_) with (Nat_, Nat_)" error.
Reproducing the behavior
The following program type-checks when it shouldn't
We expected a "can't unify (Unit, Nat_) with (Nat_, Nat_)" error.
System Settings
Bend commit 71fb680
Additional context
No response
The text was updated successfully, but these errors were encountered: