summaryrefslogtreecommitdiff
path: root/test/generic.myr
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-06-22 11:07:34 -0400
committerOri Bernstein <orib@google.com>2012-06-22 11:07:34 -0400
commit696575dc066473f238eab48e0741d82a7ba7a60a (patch)
tree3bad12ca5b0f4976d03c1b8a8eb9d73e8120a7d2 /test/generic.myr
parent361fe40c15b2303421fe7b7df59712426e187104 (diff)
downloadmc-696575dc066473f238eab48e0741d82a7ba7a60a.tar.gz
Enable 'generic' test.
Diffstat (limited to 'test/generic.myr')
-rw-r--r--test/generic.myr12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/generic.myr b/test/generic.myr
index 3cae23e..4b7a73f 100644
--- a/test/generic.myr
+++ b/test/generic.myr
@@ -1,13 +1,9 @@
-generic max = {a:@a::tcnum, b::@a::tcnum
- if (a > b)
- -> a
- else
- -> b
- ;;
+generic id = {a:@a
+ -> a
}
const main = {
- max('a', 'b')
- -> max(1, 2)
+ id("adsf")
+ -> id(42)
}