From 33b7c68a21f7c7e043d8324db949802e592654a7 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 27 Jan 2021 18:34:42 +0300 Subject: [PATCH] Add FIR_IDENTICAL to kt44440.kt test --- .../inference/regressions/kt44440.fir.kt | 21 ------------------- .../tests/inference/regressions/kt44440.kt | 1 + 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 compiler/testData/diagnostics/tests/inference/regressions/kt44440.fir.kt 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