unison/unison-src/errors/unexpected-loop.u

12 lines
225 B
Plaintext

--Abort
ability 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