JVM_IR fix cast to not-null type

We can't rely on argument type nullability here, because it still can
hold an uninitialized value on JVM.

KT-50577 KT-35272 KT-27427
This commit is contained in:
Dmitry Petrov
2021-12-29 17:05:58 +03:00
committed by teamcity
parent 4a29a8a7af
commit 4ad6cfcf53
15 changed files with 124 additions and 11 deletions
@@ -3996,6 +3996,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/casts/kt48927_privateMethodOnDerivedCastToBase.kt");
}
@TestMetadata("kt50577.kt")
public void testKt50577() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt50577.kt");
}
@TestMetadata("lambdaToUnitCast.kt")
public void testLambdaToUnitCast() throws Exception {
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");