Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt56508.kt
T
Pavel Mikhailovskii 81746e5aa1 KT-56508 Add a test
2023-02-21 16:22:26 +00:00

18 lines
228 B
Kotlin
Vendored

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