Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionResultSubstitution.kt
T

15 lines
184 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
class A<T> {
fun foo() = 1
}
interface B
public fun <E : B> E.bar() : A<out E> = null!!
fun baz(x: B) {
x.bar().foo()
}