[FE 1.0] Properly handle intersection types in check if cast possible or not

^KT-47685 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-07-12 10:43:53 +03:00
committed by teamcityserver
parent f0c4d06fc9
commit 47b0071560
8 changed files with 123 additions and 0 deletions
@@ -3837,6 +3837,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/cast/kt15161.kt");
}
@Test
@TestMetadata("kt47685.kt")
public void testKt47685() throws Exception {
runTest("compiler/testData/diagnostics/tests/cast/kt47685.kt");
}
@Test
@TestMetadata("kt614.kt")
public void testKt614() throws Exception {