[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,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
//If this test hangs, it means something is broken.
|
||||
package c
|
||||
|
||||
@@ -6,15 +7,15 @@ class A {
|
||||
}
|
||||
|
||||
//inappropriate but participating in resolve functions
|
||||
fun foo(a: A, <!UNUSED_PARAMETER!>b<!>: A, <!UNUSED_PARAMETER!>i<!>: Int) = a
|
||||
fun foo(a: A, b: A, i: Int) = a
|
||||
fun foo(a: Any) = a
|
||||
fun foo(a: A, <!UNUSED_PARAMETER!>b<!>: Any) = a
|
||||
fun foo(a: A, <!UNUSED_PARAMETER!>b<!>: A, <!UNUSED_PARAMETER!>s<!>: String) = a
|
||||
fun foo(a: A, b: Any) = a
|
||||
fun foo(a: A, b: A, s: String) = a
|
||||
//appropriate function
|
||||
fun foo(a: A, <!UNUSED_PARAMETER!>b<!>: A) = a
|
||||
fun foo(a: A, b: A) = a
|
||||
|
||||
fun test(a: A) {
|
||||
//the problem occurs if there are nested function invocations to resolve (resolve for them is repeated now)
|
||||
//to copy this invocation many times (and to comment/uncomment inappropriate functions) to see the difference
|
||||
foo(foo(a, foo(a, foo(a, a.testVal))), a)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user