summaryrefslogtreecommitdiff
path: root/test/sqrt.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/sqrt.myr')
-rw-r--r--test/sqrt.myr5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sqrt.myr b/test/sqrt.myr
index 42d89b1..98b80ea 100644
--- a/test/sqrt.myr
+++ b/test/sqrt.myr
@@ -28,6 +28,9 @@ const sqrt = {x : flt64
}
const main = {
- std.exit(sqrt(20.0) castto(int))
+ var r
+
+ r = (sqrt(20.0) : int)
+ std.exit(r)
}