You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sure. I just wanted to open an issue in case others run into it. In fact, augmented assignments are converted to regular assignments by the Kotlin compiler, so I don't exclude the possibility that this is a Kotlin compiler bug.
In any case, it may be lightly maintained as of now, but it's still the best math library for Kotlin bar none.
I spent hours tracking down this bug, because the code compiled and looked fine to me:
When I replaced the 1 with 1.0 (out of lack of things to try) the bug went away:
What's weird is that Kotlin has no issue with auto-casting a constant to double:
So the bug only appears when using augmented assignments (
+=
,-=
, etc.)I have no idea how to debug this.
I'm using Koma EJML 0.12, Kotlin 1.3.61, Java 1.8.0_242
The text was updated successfully, but these errors were encountered: