KT-56508 Add a test

This commit is contained in:
Pavel Mikhailovskii
2023-02-21 16:22:26 +00:00
committed by Space Team
parent bfa2937fb8
commit 81746e5aa1
4 changed files with 36 additions and 0 deletions
@@ -0,0 +1,18 @@
// !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