summaryrefslogtreecommitdiff
path: root/test/rvaldotlen.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/rvaldotlen.myr')
-rw-r--r--test/rvaldotlen.myr21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/rvaldotlen.myr b/test/rvaldotlen.myr
new file mode 100644
index 0000000..2c87f95
--- /dev/null
+++ b/test/rvaldotlen.myr
@@ -0,0 +1,21 @@
+use std
+
+const f1 = { -> byte[:]
+ -> [1, 2, 3][:]
+}
+
+const f2 = { -> byte[3]
+ -> [1, 2, 3]
+}
+
+
+const main = {
+ if f1().len != 3
+ -> void
+ ;;
+ if f2().len != 3
+ -> void
+ ;;
+ std.put("pass\n")
+}
+