shithub: mc

ref: ff88594df5c5df6fb8f227ab8e5df3529ba6e72f
dir: /test/implexpr.myr/

View raw version
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[:]))
}