unison/unison-src/errors/unexpected-loop.u
2021-08-24 11:33:27 -07:00

12 lines
236 B
Plaintext

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