[box-tests] Added a multi-module box test
This commit is contained in:
+6
@@ -3784,6 +3784,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3784,6 +3784,12 @@ public class FirLightTreeBlackBoxInlineCodegenTestGenerated extends AbstractFirL
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3784,6 +3784,12 @@ public class FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends A
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
// WITH_STDLIB
|
||||||
|
// WITH_REFLECT
|
||||||
|
// MODULE: lib
|
||||||
|
// FILE: lib.kt
|
||||||
|
package lib
|
||||||
|
|
||||||
|
inline val <reified T: Any> T.value: String
|
||||||
|
get() = T::class.simpleName!!
|
||||||
|
|
||||||
|
// MODULE: main(lib)
|
||||||
|
// FILE: box.kt
|
||||||
|
import lib.*
|
||||||
|
|
||||||
|
class OK
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
return OK().value ?: "fail"
|
||||||
|
}
|
||||||
+6
@@ -3784,6 +3784,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3784,6 +3784,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3784,6 +3784,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3784,6 +3784,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3784,6 +3784,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3784,6 +3784,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3784,6 +3784,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3388,6 +3388,12 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+6
@@ -3388,6 +3388,12 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
+5
@@ -3103,6 +3103,11 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt");
|
||||||
|
|||||||
+6
@@ -42608,6 +42608,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
|||||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("reifiedValMultiModule.kt")
|
||||||
|
public void testReifiedValMultiModule() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("reifiedVar.kt")
|
@TestMetadata("reifiedVar.kt")
|
||||||
public void testReifiedVar() throws Exception {
|
public void testReifiedVar() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user