summaryrefslogtreecommitdiff
path: root/test/generic.myr
diff options
context:
space:
mode:
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)
}