Fix regression on smart casts in when on a sealed class

See the comment in PatternMatchingTypingVisitor

 #KT-27221 Fixed
This commit is contained in:
Denis Zharkov
2018-09-28 18:27:18 +03:00
parent 729da29e49
commit 623c6803d6
6 changed files with 129 additions and 1 deletions
@@ -19117,6 +19117,21 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/smartCasts/kt2422.kt");
}
@TestMetadata("kt27221.kt")
public void testKt27221() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/kt27221.kt");
}
@TestMetadata("kt27221_2.kt")
public void testKt27221_2() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/kt27221_2.kt");
}
@TestMetadata("kt27221_irrelevantClasses.kt")
public void testKt27221_irrelevantClasses() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/kt27221_irrelevantClasses.kt");
}
@TestMetadata("kt2865.kt")
public void testKt2865() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/kt2865.kt");