[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
@@ -1,10 +1,10 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun <T: Any> foo(vararg <!UNUSED_PARAMETER!>ts<!>: T): T? = null
|
||||
fun <T: Any> foo(vararg ts: T): T? = null
|
||||
|
||||
class Pair<A>(<!UNUSED_PARAMETER!>a<!>: A)
|
||||
class Pair<A>(a: A)
|
||||
|
||||
fun test() {
|
||||
val v = foo(Pair(1))
|
||||
checkSubtype<Int>(<!TYPE_MISMATCH!>v<!>) // check that it is not error type
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user