KT-4529 Lambdas are analyzed improperly in an infix call nested inside a println

#KT-4529 Fixed
This commit is contained in:
Svetlana Isakova
2014-02-11 16:15:28 +04:00
parent 2ebe8fd6a2
commit 70374ea9be
5 changed files with 47 additions and 5 deletions
@@ -3086,6 +3086,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest("compiler/testData/diagnostics/tests/functionLiterals/kt2906.kt");
}
@TestMetadata("kt4529.kt")
public void testKt4529() throws Exception {
doTest("compiler/testData/diagnostics/tests/functionLiterals/kt4529.kt");
}
@TestMetadata("LabeledFunctionLiterals.kt")
public void testLabeledFunctionLiterals() throws Exception {
doTest("compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt");
@@ -6358,6 +6363,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
@TestMetadata("compiler/testData/diagnostics/tests/smartCasts")
@InnerTestClasses({SmartCasts.Inference.class})
public static class SmartCasts extends AbstractJetDiagnosticsTest {
@TestMetadata("afterBinaryExpr.kt")
public void testAfterBinaryExpr() throws Exception {
doTest("compiler/testData/diagnostics/tests/smartCasts/afterBinaryExpr.kt");
}
public void testAllFilesPresentInSmartCasts() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/diagnostics/tests/smartCasts"), Pattern.compile("^(.+)\\.kt$"), true);
}