There is kotlin compiler option: -Xno-check-impl ...
# android
g
There is kotlin compiler option: -Xno-check-impl Do not check presence of ‘impl’ modifier in multi-platform projects
o
It is unrelated to the question
g
Oh, copied a wrong line 😣
@myanmarking sorry, wrong copy/paste. You need these flags: -Xno-call-assertions Don't generate not-null assertion after each invocation of method returning not-null -Xno-param-assertions Don't generate not-null assertions on parameters of methods accessible from Java
k
I don’t think these flags do anything currently though. I remember reading that somewhere, and also tried a while ago
n
-Xno-param-assertions What are the benefits of doing so? The program still will get NPE when pass null to no-null kotlin methord.
g
Of course
n
I think the benefit is that we can check null value by ourself to get rid of NPE.