diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/implexpr-concrete.myr | 15 | ||||
-rw-r--r-- | test/tests | 1 |
2 files changed, 16 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)) +} @@ -165,3 +165,4 @@ B nestedgoto E 0 B initializer E 0 B fmtalign E 0 B implexpr P 12,z,hello +B implexpr-concrete P zigzag |