summaryrefslogtreecommitdiff
path: root/test/trait-builtin.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/trait-builtin.myr')
-rw-r--r--test/trait-builtin.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/trait-builtin.myr b/test/trait-builtin.myr
index 5df77ce..93c5bda 100644
--- a/test/trait-builtin.myr
+++ b/test/trait-builtin.myr
@@ -1,13 +1,13 @@
use std
/* checks that generic types with traits are compiled correctly.
-without the 'tcnum' trait on '@a', the '>' operator would not work
+without the 'numeric' trait on '@a', the '>' operator would not work
within max. without the 'tctest' trait on '@a' in intlike_is42,
comparing to 42 wouldn't work.
exits with 42.
*/
-generic max = {a:@a::tcnum, b:@a::tcnum
+generic max = {a:@a::numeric, b:@a::numeric
if a > b
-> a
else
@@ -15,7 +15,7 @@ generic max = {a:@a::tcnum, b:@a::tcnum
;;
}
-generic intlike_is42 = {a : @a::(tcnum,tctest,tcint)
+generic intlike_is42 = {a : @a::(numeric,integral)
-> a == 42
}