[Test] Disable UNUSED_* diagnostics in tests which are not belong to contolFlowAnalysis suite

This commit is contained in:
Dmitriy Novozhilov
2021-03-29 12:14:16 +03:00
committed by TeamCityServer
parent 85949b387e
commit cd890d5833
758 changed files with 1832 additions and 3745 deletions
@@ -1,9 +1,10 @@
// FIR_IDENTICAL
class A {
operator fun plusAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun minusAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun timesAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun divAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun remAssign(<!UNUSED_PARAMETER!>x<!>: Int) {}
operator fun plusAssign(x: Int) {}
operator fun minusAssign(x: Int) {}
operator fun timesAssign(x: Int) {}
operator fun divAssign(x: Int) {}
operator fun remAssign(x: Int) {}
}
fun testVal() {
@@ -24,11 +25,11 @@ fun testExpr() {
}
class B {
operator fun plus(<!UNUSED_PARAMETER!>x<!>: Int): B = 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 rem(<!UNUSED_PARAMETER!>x<!>: Int): B = B()
operator fun plus(x: Int): B = B()
operator fun minus(x: Int): B = B()
operator fun times(x: Int): B = B()
operator fun div(x: Int): B = B()
operator fun rem(x: Int): B = B()
}
fun testWrong() {
@@ -37,4 +38,4 @@ fun testWrong() {
<!VARIABLE_EXPECTED!>B()<!> *= 1
<!VARIABLE_EXPECTED!>B()<!> /= 1
<!VARIABLE_EXPECTED!>B()<!> %= 1
}
}