Files
kotlin-fork/compiler/testData/codegen/box/statics/inheritedPropertyInObject.kt
T
2018-06-28 12:26:41 +02:00

10 lines
210 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
open class Bar<T>(val prop: String)
object Foo : Bar<Foo>("OK") {
val p = Foo.prop
val p2 = prop
val p3 = this.prop
}
fun box(): String = Foo.prop