Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt
T
2023-03-22 15:18:17 +00:00

19 lines
296 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
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
}
}