summaryrefslogtreecommitdiff
path: root/test/genericcall.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-08-09 00:15:09 -0400
committerOri Bernstein <ori@eigenstate.org>2012-08-09 00:15:09 -0400
commit82f94a1ad3d38b62ea08351190ec237646c52a17 (patch)
treeea586089baeab660b91de8ba552b410958cbb29d /test/genericcall.myr
parent9dd33d5098c2784d246ce385e6acb7d1aea58df1 (diff)
downloadmc-82f94a1ad3d38b62ea08351190ec237646c52a17.tar.gz
Add missing test file.
Diffstat (limited to 'test/genericcall.myr')
-rw-r--r--test/genericcall.myr13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/genericcall.myr b/test/genericcall.myr
new file mode 100644
index 0000000..adeb2d6
--- /dev/null
+++ b/test/genericcall.myr
@@ -0,0 +1,13 @@
+const f = {
+ -> 42
+}
+
+generic id = {a:@a
+ -> f()
+}
+
+const main = {
+ id("adsf")
+ -> id(42)
+}
+