Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/delegateToAnother.kt
T
pyos 7327c20200 FIR: add a resolution mode for property delegates
Like function arguments, they are context-dependent, but unlike function
arguments, callable references should be resolved eagerly as if they are
explicit receivers.
2020-11-25 16:55:10 +03:00

10 lines
127 B
Kotlin
Vendored

// WITH_REFLECT
// WITH_RUNTIME
class C(val x: String)
val x = "O"
val y by ::x
val z by C("K")::x
fun box(): String = y + z