Add quick fixes for mod/rem migration

- Remove 'operator' modifier
 - Rename operator 'mod/modAssign' to 'rem/remAssign'
This commit is contained in:
Mikhail Zarechenskiy
2016-12-08 17:22:15 +03:00
parent 7a0e44b8f9
commit 373c1be7e4
13 changed files with 183 additions and 0 deletions
+14
View File
@@ -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
}