Additional tests on mod/rem migration

This commit is contained in:
Mikhail Zarechenskiy
2016-12-09 16:42:27 +03:00
parent 040f4e90ce
commit 8e73a902e4
17 changed files with 289 additions and 22 deletions
@@ -0,0 +1,15 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
class A {
companion object {
operator fun A.rem(x: Int) = 0
}
fun test() {
<!DEPRECATED_BINARY_MOD!>operator<!> fun A.mod(x: Int) = ""
takeInt(A() % 123)
}
}
fun takeInt(x: Int) {}