Changed my mind about oftype/typeof

This commit is contained in:
2022-09-07 15:02:17 +01:00
parent 4137b7f057
commit 23fdec541d
7 changed files with 10 additions and 10 deletions

View File

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