Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typeclass integer<T> {
- to_int(val: T) -> i32;
- }
- instance integer<i32> {
- to_int(val: i32) -> i32 { return val; }
- }
- fn foo(x: T, y: T) -> i64 | integer<T>;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement