Fix overload ambiguity after smartcast to nullable Nothing

#KT-39544 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-06-23 00:13:15 +03:00
parent 9313073971
commit a06c8786df
8 changed files with 105 additions and 1 deletions
@@ -21499,6 +21499,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
runTest("compiler/testData/diagnostics/tests/smartCasts/smartcastOnSameFieldOfDifferentInstances.kt");
}
@TestMetadata("smartcastToNothingAfterCheckingForNull.kt")
public void testSmartcastToNothingAfterCheckingForNull() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/smartcastToNothingAfterCheckingForNull.kt");
}
@TestMetadata("thisWithLabel.kt")
public void testThisWithLabel() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/thisWithLabel.kt");