K2: reproduce KT-65111
This commit is contained in:
committed by
Space Team
parent
dd4b1abc6a
commit
ae6aef3a63
+6
@@ -20078,6 +20078,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
|
||||
+6
@@ -20078,6 +20078,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
|
||||
+6
@@ -19787,6 +19787,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
|
||||
+6
@@ -19787,6 +19787,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
|
||||
+6
@@ -19787,6 +19787,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// ISSUE: KT-65111
|
||||
|
||||
// FILE: plugin/Plugin.java
|
||||
|
||||
package plugin;
|
||||
|
||||
import entities.*;
|
||||
|
||||
public class Plugin {
|
||||
public CommonFields getCommonFields() {
|
||||
return new CommonFields("OK");
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: entities/CommonFields.kt
|
||||
|
||||
package entities
|
||||
|
||||
data class CommonFields(val screenShots: String)
|
||||
|
||||
// FILE: test/foo.kt
|
||||
|
||||
package test
|
||||
|
||||
import plugin.Plugin
|
||||
|
||||
fun foo(plugin: Plugin): String? {
|
||||
return plugin.commonFields?.screenShots
|
||||
}
|
||||
|
||||
// FILE: example/test.kt
|
||||
|
||||
import test.foo
|
||||
import plugin.Plugin
|
||||
|
||||
fun box(): String =
|
||||
foo(Plugin())!!
|
||||
+6
@@ -19787,6 +19787,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
|
||||
+6
@@ -19787,6 +19787,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
|
||||
+6
@@ -19787,6 +19787,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
|
||||
+5
@@ -16529,6 +16529,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinJavaKotlin.kt")
|
||||
public void testKotlinJavaKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kotlinJavaKotlin.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt61856.kt")
|
||||
public void testKt61856() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/kt61856.kt");
|
||||
|
||||
Reference in New Issue
Block a user