Files
kotlin-fork/js/js.translator/testData/box/operatorOverloading/usingModInCaseModAssignNotAvailable.kt
T
Anton Bannykh 8975a6e17e JS: adapt to 1.3 coroutines API
Also update a line number test
2018-08-30 16:24:43 +03:00

17 lines
295 B
Kotlin
Vendored

// LANGUAGE_VERSION: 1.1
// EXPECTED_REACHABLE_NODES: 1112
package foo
class A() {
var p = "yeah"
operator fun mod(other: A): A {
return A();
}
}
fun box(): String {
var c = A()
val d = c;
c %= A();
return if ((c != d) && (c.p == "yeah")) "OK" else "fail"
}