1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-30 14:13:27 +03:00
juvix/tests/Compilation/negative/test006.juvix
Jan Mas Rovira 694d46fb4f
Add error message for ill-scoped variables (#2566)
- This PR adds a temporary compiler error for when the bug #2247
happens. We do not have plans to fix this bug until we move the
typechecker to Core, so it makes sense to add a better error message.
2024-06-25 16:56:36 +02:00

9 lines
225 B
Plaintext

-- Once https://github.com/anoma/juvix/issues/2247 is fixed, this should be moved to positive tests
module test006;
type Box (A : Type) :=
| box : A → Box A;
x : Box ((B : Type) → B → B) :=
box {_} λ {C x := x};