Fix codegen for context-receiver contained super class constructor calls
^KT-51889 In Progress
This commit is contained in:
+19
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user