[box-tests] Added a reproducer for KT-57053
This commit is contained in:
+6
@@ -392,6 +392,12 @@ public class FirLightTreeBlackBoxInlineCodegenTestGenerated extends AbstractFirL
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class FirLightTreeSerializeCompileKotlinAgainstInlineKotlinTestGenerated
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class FirPsiBlackBoxInlineCodegenTestGenerated extends AbstractFirPsiBlac
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class FirPsiSerializeCompileKotlinAgainstInlineKotlinTestGenerated extend
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// FILE: 1.kt
|
||||
inline fun foo(): String {
|
||||
val obj = object {
|
||||
fun localDefault(s: String = "OK") = s
|
||||
fun local() = localDefault()
|
||||
}
|
||||
return obj.local()
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
fun box() = foo()
|
||||
+6
@@ -392,6 +392,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -392,6 +392,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -350,6 +350,12 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
Generated
+6
@@ -350,6 +350,12 @@ public class FirJsCodegenInlineTestGenerated extends AbstractFirJsCodegenInlineT
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -350,6 +350,12 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
Generated
+6
@@ -350,6 +350,12 @@ public class IrJsES6CodegenInlineTestGenerated extends AbstractIrJsES6CodegenInl
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -41594,6 +41594,12 @@ public class K2NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
+6
@@ -41078,6 +41078,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
|
||||
Generated
+5
@@ -310,6 +310,11 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt57053.kt")
|
||||
public void testKt57053() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt6007.kt")
|
||||
public void testKt6007() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt");
|
||||
|
||||
Reference in New Issue
Block a user