e2c287c77e
After 2e88f5c47d
20 lines
333 B
Kotlin
Vendored
20 lines
333 B
Kotlin
Vendored
// !LANGUAGE: -ProhibitOperatorMod
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
class A {
|
|
<!DEPRECATED_BINARY_MOD!>operator<!> fun Int.mod(s: String) = 4
|
|
}
|
|
|
|
class B {
|
|
operator fun Int.rem(s: String) = ""
|
|
}
|
|
|
|
fun test() {
|
|
with(B()) {
|
|
with(A()) {
|
|
takeString(1 % "")
|
|
}
|
|
}
|
|
}
|
|
|
|
fun takeString(s: String) {} |