[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,11 +1,12 @@
// FIR_IDENTICAL
interface In<in I>
interface B : In<B>
interface C<I, T>
fun <I, T> In<I>.foo(<!UNUSED_PARAMETER!>f<!>: () -> C<I, T>) {}
fun <I, T, Self: In<I>> Self.foo2(<!UNUSED_PARAMETER!>f<!>: () -> C<I, T>) {}
fun <I, T> In<I>.foo(f: () -> C<I, T>) {}
fun <I, T, Self: In<I>> Self.foo2(f: () -> C<I, T>) {}
class E : B // e <: In<B> <: In<E>
@@ -14,4 +15,4 @@ fun test(c: C<E, Int>, e: E) {
e.foo { c } // error here: expected C<B, ???> but must be C<??? : B, ???>
e.foo2 { c }
e.foo2 ({ c })
}
}