Files
kraken/tests/test_template_operator_overload.krak
2015-08-03 18:37:42 -04:00

15 lines
174 B
Plaintext

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