Add test for KT-48230

This commit is contained in:
pyos
2021-08-12 15:58:01 +02:00
committed by Space
parent 21f7e16ee6
commit 6d7eb2bd21
12 changed files with 77 additions and 0 deletions
@@ -1318,6 +1318,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
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
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
+14
View File
@@ -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()
@@ -1306,6 +1306,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
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
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1306,6 +1306,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
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
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1318,6 +1318,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
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
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1318,6 +1318,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
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
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1318,6 +1318,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
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
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1318,6 +1318,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
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
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1306,6 +1306,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
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
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1002,6 +1002,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline
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")
public void testSimpleCapturingInClass() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");
@@ -1002,6 +1002,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
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")
public void testSimpleCapturingInClass() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");
@@ -1002,6 +1002,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
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")
public void testSimpleCapturingInClass() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt");