[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,9 +1,10 @@
// FIR_IDENTICAL
//KT-3395 mapOf function can't be used as literal
package b
import java.util.ArrayList
public fun <T> query(<!UNUSED_PARAMETER!>t<!>: T, <!UNUSED_PARAMETER!>args<!>: Map<String, Any>): List<T> {
public fun <T> query(t: T, args: Map<String, Any>): List<T> {
return ArrayList<T>()
}
@@ -17,11 +18,11 @@ fun test(pair: Pair<String, Int>) {
//from standard library
fun <K, V> mapOf(vararg <!UNUSED_PARAMETER!>values<!>: Pair<K, V>): Map<K, V> { throw Exception() }
fun <K, V> mapOf(vararg values: Pair<K, V>): Map<K, V> { throw Exception() }
infix fun <A,B> A.to(<!UNUSED_PARAMETER!>that<!>: B): Pair<A, B> { throw Exception() }
infix fun <A,B> A.to(that: B): Pair<A, B> { throw Exception() }
fun println(<!UNUSED_PARAMETER!>message<!> : Any?) { throw Exception() }
fun println(message : Any?) { throw Exception() }
class Pair<out A, out B> () {}
@@ -32,4 +33,3 @@ fun test(t: String) {
println("Some" + foo(t)) // t was marked with black square
}