[FIR] Ignore smartcast for non-final members from Java, ^KT-50219 Fixed

This commit is contained in:
Ivan Kochurkin
2021-12-14 23:55:51 +03:00
committed by teamcity
parent 84927e10b0
commit ee7e04b28e
8 changed files with 68 additions and 0 deletions
@@ -27987,6 +27987,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/smartCasts/noErrorCheckForPackageLevelVal.kt");
}
@Test
@TestMetadata("noSmartcastForNonFinalMembersFromJava.kt")
public void testNoSmartcastForNonFinalMembersFromJava() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/noSmartcastForNonFinalMembersFromJava.kt");
}
@Test
@TestMetadata("noUnnecessarySmartCastForReceiver.kt")
public void testNoUnnecessarySmartCastForReceiver() throws Exception {