Files
kotlin-fork/compiler/testData/codegen/box/ir/genericCompanion.kt
T
Roman Artemev 6e01ec8dd3 [IR] Fix translation of synthetic generic java properties
- Compute substituted accessor descriptor to avoid unbound type parameters
2020-03-27 10:52:33 +03:00

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()
}