mirror of
https://github.com/anoma/juvix.git
synced 2025-01-07 08:08:44 +03:00
[tests] add two negative tests to check new errors
This commit is contained in:
parent
1bda862266
commit
cbc9a409ca
7
tests/negative/InfixError.mjuvix
Normal file
7
tests/negative/InfixError.mjuvix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
module InfixError;
|
||||||
|
|
||||||
|
infix 5 + ;
|
||||||
|
axiom + : Type → Type → Type;
|
||||||
|
|
||||||
|
axiom T : Type + Type + ;
|
||||||
|
end;
|
7
tests/negative/MultipleDeclarations.mjuvix
Normal file
7
tests/negative/MultipleDeclarations.mjuvix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
module MultipleDeclarations;
|
||||||
|
|
||||||
|
axiom a : Type;
|
||||||
|
|
||||||
|
|
||||||
|
axiom a : Type;
|
||||||
|
end;
|
Loading…
Reference in New Issue
Block a user