mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
A set of tests provided Also #KT-4867 Fixed Also #KT-8750 Fixed Slight codegen refactoring
14 lines
229 B
Kotlin
Vendored
14 lines
229 B
Kotlin
Vendored
abstract class Your {
|
|
abstract val your: String
|
|
|
|
fun foo() = your
|
|
}
|
|
|
|
class My {
|
|
val my: String = "O"
|
|
get() = object : Your() {
|
|
override val your = field
|
|
}.foo() + "K"
|
|
}
|
|
|
|
fun box() = My().my |