KT-51397 Add a test (has been fixed elsewhere)
This commit is contained in:
committed by
Space Team
parent
9ca5e1b421
commit
076bedd065
+6
@@ -17504,6 +17504,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51290.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51397.kt")
|
||||
public void testKt51397() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51397.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51475.kt")
|
||||
public void testKt51475() throws Exception {
|
||||
|
||||
@@ -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()
|
||||
+6
@@ -17504,6 +17504,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51290.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51397.kt")
|
||||
public void testKt51397() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51397.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51475.kt")
|
||||
public void testKt51475() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user