Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53846.kt
T
2022-12-09 15:24:56 +00:00

17 lines
230 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
fun box(): String {
with(Ctx()) {
Foo()
}
return "OK"
}
context(Ctx)
class Foo private constructor(i: Int) {
constructor() : this(1)
}
class Ctx