[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
+4 -4
View File
@@ -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!!
}
}