Additional tests on mod/rem migration
This commit is contained in:
+15
@@ -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) {}
|
||||
Reference in New Issue
Block a user