updated compiler testcases
This commit is contained in:
@@ -12,18 +12,8 @@
|
||||
POP 1;
|
||||
JUMP end;
|
||||
fun:
|
||||
PUSHTYP;
|
||||
PUSHVAR "None";
|
||||
PUSHTYP;
|
||||
PUSHTYPTYP;
|
||||
EQL;
|
||||
JUMPIFNOTANDPOP arg_annot_not_type;
|
||||
EQL;
|
||||
JUMPIFANDPOP arg_ok;
|
||||
ERROR "Bad type for argument 0";
|
||||
arg_annot_not_type:
|
||||
ERROR "Argument 0 type annotation 0 is not a type";
|
||||
arg_ok:
|
||||
CHECKTYPE 0, "a";
|
||||
ASS "a";
|
||||
POP 1;
|
||||
PUSHVAR "a";
|
||||
|
||||
Reference in New Issue
Block a user