e10a9263d0
Nested classes which are not inner class should not be able to access type parameters of the outer class. Make sure access is not available when resolving super types. #KT-54748 Fixed
10 lines
228 B
Kotlin
Vendored
10 lines
228 B
Kotlin
Vendored
package test
|
|
|
|
open class ToResolve<SomeClass>(f : (Int) -> Int)
|
|
fun testFun(a : Int) = 12
|
|
|
|
class TestSome<P> {
|
|
companion object : ToResolve<<!UNRESOLVED_REFERENCE!>P<!>>(<!ARGUMENT_TYPE_MISMATCH!>{testFun(it)}<!>) {
|
|
}
|
|
}
|