[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
+3
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user