[FIR] Transform context receivers on properties during type resolution stage
^KT-53706 Fixed
This commit is contained in:
committed by
teamcity
parent
7ef2f7ccde
commit
66117367ad
@@ -0,0 +1,17 @@
|
||||
// LANGUAGE: +ContextReceivers
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// ISSUE: KT-53706
|
||||
|
||||
fun box(): String {
|
||||
return with(SomeContext()) {
|
||||
"error".foo
|
||||
}
|
||||
}
|
||||
|
||||
class SomeContext {
|
||||
val value: String = "OK"
|
||||
}
|
||||
|
||||
context(SomeContext)
|
||||
val String.foo: String
|
||||
get() = value
|
||||
Reference in New Issue
Block a user