Files
Dmitrii Gridin 2c0cf9cad8 [PSI2FIR] split AbstractRawFirBuilderLazyBodiesTestCase on ast and stub versions
This commit explicitly splits raw fir builder in lazy mode on
AST and stubs.
By default, in tests we have an AST tree loaded, so all our
`disallowTreeLoading` is useless in unit tests mode

^KT-64646 Fixed
^KT-64898
^KT-64899
^KT-64900
^KT-64901
2024-01-12 12:19:54 +00:00

21 lines
457 B
Kotlin
Vendored

// IGNORE_TREE_ACCESS: KT-64898
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
val x: Int by lazy { 1 + 2 }
val delegate = object: ReadWriteProperty<Any?, Int> {
override fun getValue(thisRef: Any?, property: KProperty<*>): Int = 1
override fun setValue(thisRef: Any?, property: KProperty<*>, value: Int) {}
}
val value by delegate
var variable by delegate
interface Base {
}
class Derived(b: Base) : Base by b {
}