summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-05-08 16:40:20 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-05-08 16:40:20 -0400
commit270ce8372aeddaa3f10362f88473ceb1159b9b5f (patch)
treeddbb7cc772d385bdcfb596722c8c09fff32c664c /tests
parent1fac85b953b4a522e6b03fafa97c25a61e1c62ea (diff)
#no_warn
Diffstat (limited to 'tests')
-rw-r--r--tests/misc.toc3
-rw-r--r--tests/misc_expected1
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc.toc b/tests/misc.toc
index 5dcd1eb..3673a07 100644
--- a/tests/misc.toc
+++ b/tests/misc.toc
@@ -37,4 +37,7 @@ main ::= fn() {
p.e = 100;
io.puti(p["bar"]);
io.puti(p["e"]);
+
+ foo := 4483 as &int; #no_warn
+ io.puti(foo as int); #no_warn
};
diff --git a/tests/misc_expected b/tests/misc_expected
index e35eecf..8e67335 100644
--- a/tests/misc_expected
+++ b/tests/misc_expected
@@ -4,3 +4,4 @@ Hello!
0
3
100
+4483