6e01ec8dd3
- Compute substituted accessor descriptor to avoid unbound type parameters
22 lines
235 B
Kotlin
Vendored
22 lines
235 B
Kotlin
Vendored
|
|
|
|
// MODULE: lib
|
|
// FILE: lib.kt
|
|
|
|
|
|
class C<T> {
|
|
fun foo(): String = "OK"
|
|
|
|
companion object {
|
|
fun bar(): C<*> = C<String>()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: main.kt
|
|
|
|
fun box(): String {
|
|
return C.bar().foo()
|
|
} |