Files
kraken/tests/test_template_operator_overload.krak
2016-02-24 19:41:49 -05:00

15 lines
184 B
Plaintext

import simple_print:*
obj it {
fun operator+<U>(other: U): it {
println(other)
return *this
}
}
fun main():int {
var i: it
i + "works"
return 0
}