Pseudocode: Do not generate implicit return instruction inside of

Unit-typed lambdas
 #KT-5549 Fixed
This commit is contained in:
Alexey Sedunov
2014-07-29 20:53:23 +04:00
parent 17dd5b9d05
commit 9fee8600cb
17 changed files with 63 additions and 33 deletions
@@ -1541,6 +1541,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/deadCodeInWhileFromBreak.kt");
}
@TestMetadata("expressionInUnitLiteral.kt")
public void testExpressionInUnitLiteral() throws Exception {
doTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/expressionInUnitLiteral.kt");
}
@TestMetadata("kt2585_1.kt")
public void testKt2585_1() throws Exception {
doTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/kt2585_1.kt");
@@ -3493,6 +3498,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest("compiler/testData/diagnostics/tests/functionLiterals/unusedLiteral.kt");
}
@TestMetadata("unusedLiteralInsideUnitLiteral.kt")
public void testUnusedLiteralInsideUnitLiteral() throws Exception {
doTest("compiler/testData/diagnostics/tests/functionLiterals/unusedLiteralInsideUnitLiteral.kt");
}
@TestMetadata("compiler/testData/diagnostics/tests/functionLiterals/return")
public static class Return extends AbstractJetDiagnosticsTest {
public void testAllFilesPresentInReturn() throws Exception {