[NI] Coerce to Unit expression in last block with explicit Unit

#KT-32037 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2019-06-18 13:56:00 +03:00
parent 25342240b5
commit 7df13c986e
10 changed files with 72 additions and 19 deletions
@@ -9915,6 +9915,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.kt");
}
@TestMetadata("coercionToUnitForLastLambdaInLambda.kt")
public void testCoercionToUnitForLastLambdaInLambda() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionToUnitForLastLambdaInLambda.kt");
}
@TestMetadata("coercionWithExpectedType.kt")
public void testCoercionWithExpectedType() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt");