summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-01-24 11:35:31 -0500
committerOri Bernstein <ori@eigenstate.org>2014-01-24 11:35:31 -0500
commita0d80034b4b6a66839a8a8c0e325e747879648e8 (patch)
tree831811c8f8fe85d56ffe0c156cc3b95b85f7272d /test
parent75dbdd0239e5bbe8d27407e3a4a32922ae37ca72 (diff)
downloadmc-a0d80034b4b6a66839a8a8c0e325e747879648e8.tar.gz
Add disabled test for empty traits.
Diffstat (limited to 'test')
-rw-r--r--test/emptytrait.myr14
-rw-r--r--test/tests1
2 files changed, 15 insertions, 0 deletions
diff --git a/test/emptytrait.myr b/test/emptytrait.myr
new file mode 100644
index 0000000..4bd9555
--- /dev/null
+++ b/test/emptytrait.myr
@@ -0,0 +1,14 @@
+use std
+
+trait fooable @a =
+;;
+impl fooable int
+
+generic foo = {x : @a::fooable
+ -> x
+}
+
+const main = {
+ std.exit(foo(123))
+}
+
diff --git a/test/tests b/test/tests
index 2177cb9..2c8cda7 100644
--- a/test/tests
+++ b/test/tests
@@ -72,6 +72,7 @@ B str E 102
B generic E 42
B genericval E 42
B trait-builtin E 42
+# E emptytrait E 123 ## BUGGERED
B nestucon P asdf
B mkunion E 0
B genericcall E 42