Closed bendmorris closed 5 years ago
trait MyTrait; trait OtherTrait { function getHash(): Int; } implement MyTrait for Int; implement MyTrait for Char; implement OtherTrait for MyTrait { function getHash() { return this; } } function main() { var i: Int = 1; var c: Char = 2; printf("%i %i\n", i.OtherTrait.getHash(), c.OtherTrait.getHash()); }
If this is a code issue, provide a minimal code example: