[NI] Fix smart cast for expression with captured input type.

This commit is contained in:
Stanislav Erokhin
2017-04-13 14:23:49 +03:00
parent 73cc1fdd9c
commit 397103f9d0
4 changed files with 21 additions and 2 deletions
@@ -20056,6 +20056,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("smartCastAndArgumentApproximation.kt")
public void testSmartCastAndArgumentApproximation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/smartCastAndArgumentApproximation.kt");
doTest(fileName);
}
@TestMetadata("smartCastOnElvis.kt")
public void testSmartCastOnElvis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/smartCastOnElvis.kt");