summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc10
1 files changed, 9 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index 7ad22c4..bf5ae21 100644
--- a/test.toc
+++ b/test.toc
@@ -9,6 +9,14 @@ main ::= fn() {
io.putb(bar0);
io.putb(foo1);
io.putb(bar1);
+
+ x ::= 4 as u64;
+
+ t ::= typeof(x);
+ if t._kind == 1 {
+ io.writes("BUILTIN ");
+ io.puti(t._builtin);
+ }
}
-//main();
+main();