unison/unison-src/errors/unexpected-loop.u
2018-09-24 13:15:40 -04:00

12 lines
224 B
Plaintext

--Abort
effect Abort where
Abort : forall a . () -> {Abort} a
use Nat +
bork = u -> 1 + (Abort.Abort ())
(bork : Nat)
-- fails with loop instead of with type mismatch in commit 2819c206acf80f926c6d970a4ffd47c961fa4502