Files
kotlin-fork/idea/testData/quickfix/renameToRem/modAssignAsMember.kt.after
T
Mikhail Zarechenskiy 5869274ff1 Disable errors in mod/rem tests that depend on language feature
Otherwise these tests will fail with LV=1.3
2018-07-05 12:59:43 +03:00

15 lines
228 B
Plaintext
Vendored

// "Rename to 'remAssign'" "true"
// DISABLE-ERRORS
object Rem {
operator fun mod(x: Int) {}
operator fun remAssign(x: Int) {}
}
fun test() {
Rem % 1
Rem.mod(1)
Rem.remAssign(1)
val c = Rem
c %= 1
}