Initial IMPLICIT_NOT_NULL support
This commit is contained in:
committed by
Dmitry Petrov
parent
03ebf06cf8
commit
3fe84bba6c
+8
@@ -412,6 +412,14 @@ class ExpressionCodegen(
|
||||
generateIsCheck(mv, expression.typeOperand, type)
|
||||
}
|
||||
|
||||
IrTypeOperator.IMPLICIT_NOTNULL -> {
|
||||
gen(expression.argument, OBJECT_TYPE, data)
|
||||
mv.dup()
|
||||
mv.visitLdcInsn("TODO provide message") /*TODO*/
|
||||
mv.invokestatic("kotlin/jvm/internal/Intrinsics", "checkExpressionValueIsNotNull",
|
||||
"(Ljava/lang/Object;Ljava/lang/String;)V", false)
|
||||
}
|
||||
|
||||
else -> super.visitTypeOperator(expression, data)
|
||||
}
|
||||
return expression.onStack
|
||||
|
||||
Reference in New Issue
Block a user