#$ Basic typeclass with two instances, one with environment. # 11111 # 489 class MyAsInt to-int (self _) -> I32 m = 69 inst MyAsInt I32 to-int (self I32) -> I32 return self + m inst MyAsInt Unit to-int (self Unit) -> I32 return 11111 println(to-int(Unit)) println(to-int(420))