Files
kotlin-fork/compiler/testData/codegen/box/statics/inheritedPropertyInObject.kt
T
Steven Schäfer aea5e3ffbc JVM IR: Remove type substitutions from ExpressionCodegen
Instead, determine whether the return type of a call is Nothing, by
looking at the type of the call expression.
2020-01-22 15:51:11 +01:00

8 lines
159 B
Kotlin
Vendored

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