updated compiler testcases

This commit is contained in:
cozis
2022-12-07 18:45:22 +01:00
parent 98374ee491
commit 60c2d3ea88
6 changed files with 10 additions and 107 deletions
+1 -11
View File
@@ -12,18 +12,8 @@
POP 1;
JUMP end;
fun:
PUSHTYP;
PUSHVAR "int";
PUSHTYP;
PUSHTYPTYP;
EQL;
JUMPIFNOTANDPOP annot_bad;
EQL;
JUMPIFANDPOP arg_ok;
ERROR "Bad type for argument 1";
annot_bad:
ERROR "Argument 1 type annotation 0 is not a type";
arg_ok:
CHECKTYPE 1, "b";
ASS "b";
POP 1;
ASS "a";