ref: 1b1439cd64f73986909b85c99c91c2195d4ab58f
dir: /test/gtrait.myr/
use std
trait comparable @a =
cmp : (a : @a, b : @a -> std.order)
;;
impl comparable @a::numeric =
cmp = {a, b
-> std.numcmp(a, b)
}
;;
const main = {
std.put("{}", cmp(1, 2))
}