[PSI2IR] Fix parameter initialization for constructors with CR

This commit is contained in:
Anastasiya Shadrina
2021-10-29 05:19:14 +07:00
committed by TeamCityServer
parent 4caf42804a
commit 2fbfee3e11
20 changed files with 232 additions and 286 deletions
@@ -0,0 +1,17 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
class O(val o: String)
context(O)
class OK(val k: String) {
val result: String = o + k
}
fun box(): String {
return with(O("O")) {
val ok = OK("K")
ok.result
}
}