[PSI2IR] Fix parameter initialization for constructors with CR
This commit is contained in:
committed by
TeamCityServer
parent
4caf42804a
commit
2fbfee3e11
+17
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user