shithub: mc

ref: 03ef9a246d5f6f8013c19285224323e64206c415
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[:]))
}