[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,10 +1,10 @@
//KT-2746 Do.smartcasts in inference
class C<T>(<!UNUSED_PARAMETER!>t<!> :T)
class C<T>(t :T)
fun test1(a: Any) {
if (a is String) {
val <!UNUSED_VARIABLE!>c<!>: C<String> = C(<!DEBUG_INFO_SMARTCAST!>a<!>)
val c: C<String> = C(<!DEBUG_INFO_SMARTCAST!>a<!>)
}
}
@@ -13,6 +13,6 @@ fun <T> f(t :T): C<T> = C(t)
fun test2(a: Any) {
if (a is String) {
val <!UNUSED_VARIABLE!>c1<!>: C<String> = f(<!DEBUG_INFO_SMARTCAST!>a<!>)
val c1: C<String> = f(<!DEBUG_INFO_SMARTCAST!>a<!>)
}
}