[FIR] KT-55747: Report error for operator fun mod
^KT-55747 Fixed Merge-request: KT-MR-8522 Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
37a7044e74
commit
e2403c801f
@@ -4,6 +4,7 @@ class A() {
|
||||
var x = 5
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATED_BINARY_MOD")
|
||||
operator fun A.modAssign(y: Int) { throw RuntimeException("mod has been called instead of rem") }
|
||||
operator fun A.remAssign(y: Int) { x %= y + 1 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user