KT-56508 Add a test
This commit is contained in:
committed by
Space Team
parent
bfa2937fb8
commit
81746e5aa1
@@ -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
|
||||
Reference in New Issue
Block a user