diff --git a/compiler/testData/diagnostics/tests/java8Overrides/kt45508.fir.kt b/compiler/testData/diagnostics/tests/java8Overrides/kt45508.fir.kt deleted file mode 100644 index 74799931c57..00000000000 --- a/compiler/testData/diagnostics/tests/java8Overrides/kt45508.fir.kt +++ /dev/null @@ -1,29 +0,0 @@ -interface A { - fun foo(): Any -} - -interface B { - fun foo(): String = "A" -} - -open class D: B - -open class C: D(), A - -// ------------ - -class Test: Impl(), CProvider - -open class CC - -class DD: CC() - -interface CProvider { - fun getC(): CC -} - -interface DProvider { - fun getC(): DD = DD() -} - -open class Impl: DProvider diff --git a/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt b/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt index 87e7208a5da..7ae8cec917e 100644 --- a/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt +++ b/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt @@ -1,4 +1,3 @@ -// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER class TColl> diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.fail b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.fail deleted file mode 100644 index 274b3d45f29..00000000000 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.fail +++ /dev/null @@ -1,7 +0,0 @@ -Failures detected in FirBodyResolveTransformerAdapter, file: /kt41308.fir.kt -Cause: java.lang.RuntimeException: While resolving call R?C|kotlin/sequences/sequence|( = sequence@fun R|kotlin/sequences/SequenceScope|.(): R|kotlin/Unit| { - lval list: R|kotlin/collections/List?| = Null(null) - lval outputList: R|TypeVariable(K)| = R|/list| ?: R?C|kotlin/collections/listOf|() - yieldAll#(R|/outputList|) -} -) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.kt new file mode 100644 index 00000000000..7c990aac113 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.kt @@ -0,0 +1,9 @@ +// ISSUE: KT-41308, KT-47830 + +fun main() { + sequence { + val list: List? = null + val outputList = ")!>list ?: listOf() + yieldAll(outputList) + } +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.kt index 955bf6863e0..98d61742273 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.kt @@ -1,4 +1,3 @@ -// FIR_IDENTICAL // ISSUE: KT-41308, KT-47830 fun main() {