KT-51397 Add a test (has been fixed elsewhere)

This commit is contained in:
Pavel Mikhailovskii
2022-12-27 12:50:43 +00:00
committed by Space Team
parent 9ca5e1b421
commit 076bedd065
3 changed files with 24 additions and 0 deletions
@@ -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()
@@ -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 {