Files
kotlin-fork/translator/testFiles/operatorOverloading/cases/usingModInCaseModAssignNotAvailable.kt
T
Pavel Talanov 0b0afcedab Added test.
2011-11-25 18:44:11 +04:00

15 lines
211 B
Kotlin

namespace foo
class A() {
var p = "yeah"
fun mod(other : A) : A {
return A();
}
}
fun box() : Boolean {
var c = A()
val d = c;
c %= A();
return (c != d) && (c.p == "yeah")
}