Files
kraken/tests/test_template_operator_overload.krak

15 lines
174 B
Plaintext
Raw Normal View History

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