KT-51397 Add a test (has been fixed elsewhere)
This commit is contained in:
committed by
Space Team
parent
9ca5e1b421
commit
076bedd065
@@ -0,0 +1,12 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
fun box(): String {
|
||||
with(0) {
|
||||
Child()
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
|
||||
context(Int) open class Parent
|
||||
context(Int) class Child : Parent()
|
||||
Reference in New Issue
Block a user