shithub: mc

ref: 3b5584581a79cec899c7f6a5233529a64a22ab5f
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[:]))
}