Files
kotlin-fork/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt
T
Ilya Chernikov 6356807997 Reapply "Only create descriptors for candidates with lambda args"
#KT-36247 fixed
A lot of testdata changed because significanly less (error) descriptors
are created for unresolved types, so diagnostics became different.
2020-02-14 11:41:30 +01:00

14 lines
300 B
Kotlin
Vendored

// !LANGUAGE: -ProhibitOperatorMod
// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER
object OldMod {
<!DEPRECATED_BINARY_MOD!>operator<!> fun mod(x: Int) {}
}
object RemExtension
operator fun RemExtension.rem(x: Int) {}
fun foo() {
OldMod <!DEPRECATED_BINARY_MOD_AS_REM!>%<!> 123
}