[FIR] Transform context receivers on properties during type resolution stage

^KT-53706 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-08-24 17:06:50 +03:00
committed by teamcity
parent 7ef2f7ccde
commit 66117367ad
4 changed files with 30 additions and 0 deletions
@@ -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