With `2.2.0-Beta2` version bump, I am getting `Ide...
# compiler
o
With
2.2.0-Beta2
version bump, I am getting
Identity-sensitive operation on an instance of value type 'Instant?' may cause unexpected behavior or errors.
warnings. And I have “All warnings are errors” configurations enabled, hence the build fails. How can I disable this specific warning? I’ve checked the blog post: https://kotlinlang.org/docs/whatsnew-eap.html but didn’t see specific option to disable those 🤔
d
You can suppress the warning globally using the following compiler argument:
Copy code
-Xwarning-level=IDENTITY_SENSITIVE_OPERATIONS_WITH_VALUE_TYPE:disabled
Check the KT-70722 regarding this warning and KT-73606 for the
-Xwarning-level
flag itself.
o
Great info, thanks a lot!