Fix codegen for context-receiver contained super class constructor calls

^KT-51889 In Progress
This commit is contained in:
Denis.Zharkov
2022-04-29 18:15:07 +03:00
committed by teamcity
parent e39fb807a7
commit 81416d1c46
4 changed files with 37 additions and 7 deletions
@@ -0,0 +1,19 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
class Components(val x: String)
context(Components)
abstract class A {
fun foo(): String = x
}
context(Components)
class B : A()
fun box(): String {
return with(Components("OK")) {
B().foo()
}
}