Add test for obsolete issue

#KT-26345 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2020-06-26 07:45:25 +03:00
parent a04f70fb36
commit bc34f7f7f5
5 changed files with 40 additions and 0 deletions
@@ -12399,6 +12399,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt26345.kt")
public void testKt26345() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt26345.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.kt");
+20
View File
@@ -0,0 +1,20 @@
// TARGET_BACKEND: JVM
// FULL_JDK
// WITH_RUNTIME
// JVM_TARGET: 1.8
import java.util.stream.Collectors
import java.util.function.Function
fun box(): String {
val m = listOf("OK", "OK")
.stream()
.collect(
Collectors.groupingBy(
Function.identity(),
Collectors.counting()
)
)
if (m["OK"] != 2L) return "fail: ${m["OK"]}"
return "OK"
}
@@ -13624,6 +13624,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt26345.kt")
public void testKt26345() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt26345.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.kt");
@@ -13624,6 +13624,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt26345.kt")
public void testKt26345() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt26345.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.kt");
@@ -12399,6 +12399,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt26345.kt")
public void testKt26345() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt26345.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.kt");