mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
33 lines
659 B
Kotlin
33 lines
659 B
Kotlin
class TestDelegate() {
|
|
fun get(thisRef: Any?, desc: PropertyMetadata): Int {
|
|
return 10
|
|
}
|
|
|
|
public open fun set(thisRef: Any?, desc: PropertyMetadata, svalue : Int) {
|
|
|
|
}
|
|
}
|
|
|
|
|
|
class Test {
|
|
default object {
|
|
protected var prop: Int by TestDelegate()
|
|
}
|
|
}
|
|
|
|
// TESTED_OBJECT_KIND: property
|
|
// TESTED_OBJECTS: Test, prop
|
|
// ABSENT: TRUE
|
|
|
|
// TESTED_OBJECT_KIND: property
|
|
// TESTED_OBJECTS: Test$Default, prop
|
|
// ABSENT: TRUE
|
|
|
|
// TESTED_OBJECT_KIND: property
|
|
// TESTED_OBJECTS: Test$Default, prop$delegate
|
|
// ABSENT: TRUE
|
|
|
|
// TESTED_OBJECT_KIND: property
|
|
// TESTED_OBJECTS: Test, prop$delegate
|
|
// FLAGS: ACC_STATIC, ACC_FINAL, ACC_PRIVATE
|