Files
kotlin-fork/compiler/testData/codegen/box/statics/inheritedPropertyInClassObject.kt
T
2020-03-10 15:19:34 +03:00

13 lines
240 B
Kotlin
Vendored

open class Bar<T>(val prop: String)
class Foo {
companion object : Bar<Foo>("OK") {
val p = Foo.prop
val p2 = prop
val p3 = this.prop
}
val p4 = Foo.prop
val p5 = prop
}
fun box(): String = Foo.prop