Throw NPE instead of TypeCastException since 1.4
#KT-22275 In Progress
This commit is contained in:
+1
-2
@@ -782,8 +782,7 @@ class ExpressionCodegen(
|
||||
v.checkcast(boxedRightType)
|
||||
} else {
|
||||
generateAsCast(
|
||||
mv, kotlinType, boxedRightType, expression.operator == IrTypeOperator.SAFE_CAST,
|
||||
state.languageVersionSettings.isReleaseCoroutines()
|
||||
mv, kotlinType, boxedRightType, expression.operator == IrTypeOperator.SAFE_CAST, state.languageVersionSettings
|
||||
)
|
||||
}
|
||||
MaterialValue(this, boxedRightType, expression.type).coerce(expression.type)
|
||||
|
||||
Reference in New Issue
Block a user