e2403c801f
^KT-55747 Fixed Merge-request: KT-MR-8522 Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
22 lines
351 B
Kotlin
Vendored
22 lines
351 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !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) {}
|