Implemented typeof and added resetInterpreter()

This commit is contained in:
2022-09-05 10:56:35 +01:00
parent 2a3206d951
commit 2aecf6e8a1
11 changed files with 125 additions and 66 deletions

View File

@@ -32,6 +32,17 @@
assert func() == 69, "import/export of functions failed";
}
//TODO: test that variables retain their types with the typeOf keyword
//test that variables retain their types with the typeof keyword
{
var t: type = int;
export t;
}
{
import t;
assert typeof t == type type, "type retention failed";
}
print "All good";