[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 {
|
||||
|
||||
Reference in New Issue
Block a user