FIR: reproduce KT-42656
This commit is contained in:
committed by
Mikhail Glukhikh
parent
96834d6f4c
commit
65545a10c4
Generated
+5
@@ -2023,6 +2023,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
|||||||
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
|
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaField.kt")
|
||||||
|
public void testJavaField() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/callableReference/javaField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt37604.kt")
|
@TestMetadata("kt37604.kt")
|
||||||
public void testKt37604() throws Exception {
|
public void testKt37604() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
|
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
// TARGET_BACKEND: JVM
|
||||||
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
// FILE: JClass.java
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
public class JClass {
|
||||||
|
public final Set<String> field;
|
||||||
|
|
||||||
|
public JClass(String... ins) {
|
||||||
|
field = new HashSet<String>(Arrays.asList(ins));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: main.kt
|
||||||
|
|
||||||
|
fun collect(lst: List<JClass>): String {
|
||||||
|
return lst.flatMap(JClass::field).joinToString(separator = "")
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
return collect(listOf(JClass("O"), JClass("K")))
|
||||||
|
}
|
||||||
+5
@@ -2043,6 +2043,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
|
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaField.kt")
|
||||||
|
public void testJavaField() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/callableReference/javaField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt37604.kt")
|
@TestMetadata("kt37604.kt")
|
||||||
public void testKt37604() throws Exception {
|
public void testKt37604() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
|
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
|
||||||
|
|||||||
+5
@@ -2043,6 +2043,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
|
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaField.kt")
|
||||||
|
public void testJavaField() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/callableReference/javaField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt37604.kt")
|
@TestMetadata("kt37604.kt")
|
||||||
public void testKt37604() throws Exception {
|
public void testKt37604() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
|
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
|
||||||
|
|||||||
+5
@@ -2023,6 +2023,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
|
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaField.kt")
|
||||||
|
public void testJavaField() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/callableReference/javaField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt37604.kt")
|
@TestMetadata("kt37604.kt")
|
||||||
public void testKt37604() throws Exception {
|
public void testKt37604() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
|
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user