[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
@@ -8,7 +8,7 @@ class MyException : Exception() {
}
fun test1() {
val <!UNUSED_VARIABLE!>e<!> = "something"
val e = "something"
try {}
catch (e: Exception) {
e.message
@@ -35,15 +35,15 @@ fun test3() {
fun test4() {
try {}
catch (e: Exception) {
val <!REDECLARATION, UNUSED_VARIABLE!>a<!> = 42
val <!NAME_SHADOWING, REDECLARATION, UNUSED_VARIABLE!>a<!> = "foo"
val <!REDECLARATION!>a<!> = 42
val <!NAME_SHADOWING, REDECLARATION!>a<!> = "foo"
}
}
fun test5() {
try {}
catch (e: Exception) {
val <!UNUSED_VARIABLE!>a<!>: Int = 42
val a: Int = 42
try {}
catch (e: MyException) {
e.myFun()
@@ -51,4 +51,4 @@ fun test5() {
a.length
}
}
}
}