Update FirOldFrontendDiagnosticsTestGenerated tests

This commit is contained in:
Mikhael Bogdanov
2021-07-23 12:12:46 +02:00
parent 70e4472c99
commit baaa615e09
5 changed files with 9 additions and 38 deletions
@@ -1,29 +0,0 @@
interface A {
fun foo(): Any
}
interface B {
fun foo(): String = "A"
}
open class D: B
open <!MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>class C<!>: D(), A
// ------------
<!MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>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
@@ -1,4 +1,3 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
class TColl<T, C : Collection<T>>
@@ -1,7 +0,0 @@
Failures detected in FirBodyResolveTransformerAdapter, file: /kt41308.fir.kt
Cause: java.lang.RuntimeException: While resolving call R?C|kotlin/sequences/sequence|(<L> = sequence@fun R|kotlin/sequences/SequenceScope<Stub: TypeVariable(T)>|.<anonymous>(): R|kotlin/Unit| {
lval list: R|kotlin/collections/List<kotlin/String>?| = Null(null)
lval outputList: R|TypeVariable(K)| = R|<local>/list| ?: R?C|kotlin/collections/listOf|()
yieldAll#(R|<local>/outputList|)
}
)
@@ -0,0 +1,9 @@
// ISSUE: KT-41308, KT-47830
fun main() {
sequence {
val list: List<String>? = null
val outputList = <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.collections.List<kotlin.String>")!>list ?: listOf()<!>
yieldAll(outputList)
}
}
@@ -1,4 +1,3 @@
// FIR_IDENTICAL
// ISSUE: KT-41308, KT-47830
fun main() {