mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
8 lines
159 B
Kotlin
8 lines
159 B
Kotlin
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 |