[NI] Fix coercion to Unit for explicitly specified type argument

#KT-25424 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-11-21 18:22:28 +03:00
parent c6712ff861
commit 7a9fb3ca26
6 changed files with 28 additions and 4 deletions
@@ -9685,6 +9685,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt");
}
@TestMetadata("coercionWithExplicitTypeArgument.kt")
public void testCoercionWithExplicitTypeArgument() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExplicitTypeArgument.kt");
}
@TestMetadata("coercionWithoutExpectedType.kt")
public void testCoercionWithoutExpectedType() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt");