4deab9693e
Some of them are not necessary at all, others can be replaced with `!LANGUAGE` directive with exclusion of corresponding features.
17 lines
305 B
Kotlin
Vendored
17 lines
305 B
Kotlin
Vendored
// !LANGUAGE: -ProhibitOperatorMod
|
|
// EXPECTED_REACHABLE_NODES: 1284
|
|
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"
|
|
} |