Add quick fixes for mod/rem migration
- Remove 'operator' modifier - Rename operator 'mod/modAssign' to 'rem/remAssign'
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Rename to 'remAssign'" "true"
|
||||
|
||||
object Rem {
|
||||
operator fun mod(x: Int) {}
|
||||
operator<caret> fun modAssign(x: Int) {}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
Rem % 1
|
||||
Rem.mod(1)
|
||||
Rem.modAssign(1)
|
||||
val c = Rem
|
||||
c %= 1
|
||||
}
|
||||
Reference in New Issue
Block a user