summaryrefslogtreecommitdiff
path: root/test/trunccast.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/trunccast.myr')
-rw-r--r--test/trunccast.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/trunccast.myr b/test/trunccast.myr
index 11e96e8..14f283e 100644
--- a/test/trunccast.myr
+++ b/test/trunccast.myr
@@ -5,6 +5,6 @@ const main = {
var y : int32
y = 9999
- x = y castto(uint8)
- std.exit((x % 73) castto(int))
+ x = (y : uint8)
+ std.exit((x % 73 : int))
}