summaryrefslogtreecommitdiff
path: root/test/implexpr-concrete.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/implexpr-concrete.myr')
-rw-r--r--test/implexpr-concrete.myr15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/implexpr-concrete.myr b/test/implexpr-concrete.myr
new file mode 100644
index 0000000..9d5eeb1
--- /dev/null
+++ b/test/implexpr-concrete.myr
@@ -0,0 +1,15 @@
+use std
+
+trait name @a =
+ Name: byte[:]
+;;
+impl name void =
+ Name = "zig"
+;;
+impl name int =
+ Name = "zag"
+;;
+
+const main = {
+ std.put("{}{}\n", impl(Name, void), impl(Name, int))
+}