regression test for KT-5953
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
fun box(): String {
|
||||
val res = (1..3).map { it ->
|
||||
if (it == 1)
|
||||
2
|
||||
};
|
||||
|
||||
var result = ""
|
||||
for (i in res)
|
||||
result += " "
|
||||
return if (result == " ") "OK" else result
|
||||
}
|
||||
+6
@@ -3110,6 +3110,12 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt5953.kt")
|
||||
public void testKt5953() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/regressions/kt5953.kt");
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt6434.kt")
|
||||
public void testKt6434() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/regressions/kt6434.kt");
|
||||
|
||||
Reference in New Issue
Block a user