diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt44440.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt44440.fir.kt deleted file mode 100644 index 5bfbe210324..00000000000 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt44440.fir.kt +++ /dev/null @@ -1,21 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -UNUSED_EXPRESSION - -interface I - -fun consume(x: WrapperFactory>) {} - -fun test(x: I) { - val y = foo(x) - >")!>y - consume(y) -} - -fun foo( - x: CX, - fn1: (CX) -> Unit = {}, - fn2: (CX?) -> Unit = {} -) = WrapperFactory { Wrapper(fn1, fn2) } - -class WrapperFactory(val creator: () -> W) - -class Wrapper(val fn1: (CX2) -> Unit, val fn2: (CX2?) -> Unit) diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt44440.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt44440.kt index 5bfbe210324..de3c8bf2fe6 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt44440.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt44440.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -UNUSED_EXPRESSION interface I