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.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user