Add test for KT-48230
This commit is contained in:
+6
@@ -1318,6 +1318,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
// NO_CHECK_LAMBDA_INLINING
|
||||||
|
// FILE: 1.kt
|
||||||
|
inline fun withO(block: String.() -> String) = "O".block()
|
||||||
|
|
||||||
|
// FILE: 2.kt
|
||||||
|
interface I {
|
||||||
|
val k: String
|
||||||
|
|
||||||
|
fun foo() = withO { this + k }
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String = object : I {
|
||||||
|
override val k = "K"
|
||||||
|
}.foo()
|
||||||
+6
@@ -1306,6 +1306,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
|
|||||||
+6
@@ -1306,6 +1306,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
|
|||||||
+6
@@ -1318,6 +1318,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
|
|||||||
+6
@@ -1318,6 +1318,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
|
|||||||
+6
@@ -1318,6 +1318,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
|
|||||||
+6
@@ -1318,6 +1318,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
|
|||||||
+6
@@ -1306,6 +1306,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
|
|||||||
+5
@@ -1002,6 +1002,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");
|
||||||
|
|||||||
Generated
+5
@@ -1002,6 +1002,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");
|
||||||
|
|||||||
Generated
+5
@@ -1002,6 +1002,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
|
|||||||
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/generics.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt48230.kt")
|
||||||
|
public void testKt48230() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("simpleCapturingInClass.kt")
|
@TestMetadata("simpleCapturingInClass.kt")
|
||||||
public void testSimpleCapturingInClass() throws Exception {
|
public void testSimpleCapturingInClass() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");
|
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user