Idris2-boot/tests/idris2/linear004/expected
Edwin Brady df3f8b73f8 Further tweak to linearity rules
When we check a scope in RigW, need to mark all linear things outside
that scope as irrelevant within the scope (since the scope may be used
multiple times).
2019-12-29 15:21:08 +00:00

26 lines
775 B
Plaintext

1/2: Building Stuff (Stuff.idr)
2/2: Building Erase (Erase.idr)
Main> S Z
Main> S (S Z)
Main> S Z
Main> (interactive):1:15--1:16:x is not accessible in this context
Main> (interactive):1:5--1:31:When unifying Nat -> Nat -> Nat and (0 x : Nat) -> Nat -> Nat
Mismatch between:
Nat -> Nat -> Nat
and
(0 x : Nat) -> Nat -> Nat
Main> (interactive):1:5--1:31:When unifying (1 x : Nat) -> Nat -> Nat and (0 x : Nat) -> Nat -> Nat
Mismatch between:
(1 x : Nat) -> Nat -> Nat
and
(0 x : Nat) -> Nat -> Nat
Main> (interactive):1:20--1:22:x is not accessible in this context
Main> S (S Z)
Main> S (S Z)
Main> (interactive):1:6--1:31:When unifying (0 x : Nat) -> Nat -> Nat and Nat -> Nat -> Nat
Mismatch between:
(0 x : Nat) -> Nat -> Nat
and
Nat -> Nat -> Nat
Main> Bye for now!