[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,11 @@
// FIR_IDENTICAL
package a
fun foo(l: List<Int>): Int = l.get(0)
fun <T> emptyList(): List<T> = throw Exception()
fun <T: Any> makeNullable(<!UNUSED_PARAMETER!>t<!>: T): T? = null
fun <T: Any> makeNullable(t: T): T? = null
fun bar(i: Int) = i
fun bar(a: Any) = a
@@ -15,4 +16,4 @@ fun test(array: Array<Int>) {
bar(foo(emptyList()) + foo(a.emptyList()))
bar(makeNullable(foo(emptyList())) ?: 0)
}
}