[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,8 +1,9 @@
|
||||
// FIR_IDENTICAL
|
||||
// !CHECK_TYPE
|
||||
|
||||
// A generic funciton is always less specific than a non-generic one
|
||||
fun <T> foo(<!UNUSED_PARAMETER!>t<!> : T) : Unit {}
|
||||
fun foo(<!UNUSED_PARAMETER!>i<!> : Int) : Int = 1
|
||||
fun <T> foo(t : T) : Unit {}
|
||||
fun foo(i : Int) : Int = 1
|
||||
|
||||
fun test() {
|
||||
checkSubtype<Int>(foo(1))
|
||||
|
||||
Reference in New Issue
Block a user