shithub: mc

ref: 74d91a0021de012908cfdb35fb61a1473a376130
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[:]))
}