[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
+4
-4
@@ -14,7 +14,7 @@ fun check() {
|
||||
// Error: KT-10449
|
||||
fun <!IMPLICIT_NOTHING_RETURN_TYPE!>local<!>() = bar()
|
||||
// Unreachable / unused, but not implicit Nothing
|
||||
<!UNREACHABLE_CODE!>val <!UNUSED_VARIABLE!>x<!> =<!> null!!
|
||||
<!UNREACHABLE_CODE!>val x =<!> null!!
|
||||
}
|
||||
|
||||
fun <!IMPLICIT_NOTHING_RETURN_TYPE!>nonLocalReturn<!>() = run { <!RETURN_TYPE_MISMATCH!>return<!> }
|
||||
@@ -33,7 +33,7 @@ class Klass {
|
||||
fun foo() {
|
||||
fun <!IMPLICIT_NOTHING_RETURN_TYPE!>local<!>() = bar()
|
||||
|
||||
<!UNREACHABLE_CODE!>val <!UNUSED_VARIABLE!>x<!> =<!> y
|
||||
<!UNREACHABLE_CODE!>val x =<!> y
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,8 +45,8 @@ interface Base {
|
||||
|
||||
class Derived : Base {
|
||||
// Ok for override
|
||||
|
||||
|
||||
override val x = null!!
|
||||
|
||||
override fun foo() = null!!
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user