deea0643ad
In case of type constructors captured parameters from outer classes #KT-5510 Fixed #KT-3112 Fixed #KT-6325 Fixed #KT-408 Fixed #KT-6337 Fixed
12 lines
195 B
Kotlin
Vendored
12 lines
195 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
interface T<E> {
|
|
fun f() : E = null!!
|
|
}
|
|
open class A<X>() {
|
|
inner class B() : T<X> {}
|
|
}
|
|
|
|
fun test() {
|
|
val a = A<Int>()
|
|
val b : A<Int>.B = a.B()
|
|
} |