#$ Basic typeclass with two instances. # 11 # 0 class MyAsInt to-int (self _) -> I32 inst MyAsInt I32 to-int (self I32) -> I32 return self inst MyAsInt Bool to-int (self Bool) -> I32 if self return 1 else return 0 println(to-int(10) + to-int(True)) println(to-int(False))