Add warnings at declaration and call sites of operator 'mod'

This commit is contained in:
Mikhail Zarechenskiy
2016-12-05 22:43:07 +03:00
parent 97ca51381a
commit 5f71f1bcad
18 changed files with 222 additions and 20 deletions
@@ -3,7 +3,7 @@ class A {
operator fun minusAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun timesAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun divAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun modAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun remAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
}
fun testVal() {
@@ -28,7 +28,7 @@ class B {
operator fun minus(<!UNUSED_PARAMETER!>x<!>: Int): B = B()
operator fun times(<!UNUSED_PARAMETER!>x<!>: Int): B = B()
operator fun div(<!UNUSED_PARAMETER!>x<!>: Int): B = B()
operator fun mod(<!UNUSED_PARAMETER!>x<!>: Int): B = B()
operator fun rem(<!UNUSED_PARAMETER!>x<!>: Int): B = B()
}
fun testWrong() {