[box-tests] Added a reproducer for #KT-62313
This commit is contained in:
+6
@@ -2574,6 +2574,12 @@ public class FirLightTreeBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated e
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class FirLightTreeBlackBoxInlineCodegenWithIrInlinerTestGenerated extends
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class FirLightTreeSerializeCompileKotlinAgainstInlineKotlinTestGenerated
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class FirPsiBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated extends
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class FirPsiBlackBoxInlineCodegenWithIrInlinerTestGenerated extends Abstr
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class FirPsiSerializeCompileKotlinAgainstInlineKotlinTestGenerated extend
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// !LANGUAGE: +InlineClasses +MangleClassMembersReturningInlineClasses
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
inline class S(val string: String)
|
||||
|
||||
inline fun foo() = S("OK")
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.*
|
||||
|
||||
inline fun bar(f: () -> S): S = f()
|
||||
|
||||
fun box() : String =
|
||||
bar(::foo).string
|
||||
+6
@@ -2538,6 +2538,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2538,6 +2538,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class IrBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated extends Abs
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class IrBlackBoxInlineCodegenWithIrInlinerTestGenerated extends AbstractI
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2574,6 +2574,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2538,6 +2538,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
Generated
+6
@@ -2250,6 +2250,12 @@ public class FirJsCodegenInlineTestGenerated extends AbstractFirJsCodegenInlineT
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
Generated
+6
@@ -2250,6 +2250,12 @@ public class FirJsES6CodegenInlineTestGenerated extends AbstractFirJsES6CodegenI
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -2250,6 +2250,12 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
Generated
+6
@@ -2250,6 +2250,12 @@ public class IrJsES6CodegenInlineTestGenerated extends AbstractIrJsES6CodegenInl
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -43765,6 +43765,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -44887,6 +44887,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -43205,6 +43205,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
+6
@@ -43766,6 +43766,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
Generated
+6
@@ -2250,6 +2250,12 @@ public class FirWasmCodegenBoxInlineTestGenerated extends AbstractFirWasmCodegen
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
Generated
+6
@@ -2250,6 +2250,12 @@ public class K1WasmCodegenBoxInlineTestGenerated extends AbstractK1WasmCodegenBo
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62313.kt")
|
||||
public void testKt62313() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noReturnTypeManglingFun.kt")
|
||||
public void testNoReturnTypeManglingFun() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user