[BE] Put context receivers before an extension receiver

This commit is contained in:
Anastasiya Shadrina
2021-06-28 18:09:52 +07:00
committed by TeamCityServer
parent 814777ba8c
commit a2403c470f
15 changed files with 70 additions and 14 deletions
@@ -0,0 +1,13 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
class A {
val ok = "OK"
context(A)
fun A.f() = ok
}
fun box(): String = with(A()) {
f()
}