summaryrefslogtreecommitdiff
path: root/test/implexpr.myr
blob: d449a2af300f65e12594d65d27fc82a1e79d2689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std

trait favorite @a =
	Fav : @a
;;
impl favorite int =
	Fav = 12
;;
impl favorite char =
	Fav = 'z'
;;
impl favorite byte[:] =
	Fav = "hello"
;;

const main = {
	std.put("{},{},{}\n", impl(Fav, int), impl(Fav, char), impl(Fav, byte[:]))
}