[Test] Disable UNUSED_* diagnostics in tests which are not belong to contolFlowAnalysis suite
This commit is contained in:
committed by
TeamCityServer
parent
85949b387e
commit
cd890d5833
+5
-5
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user