Hi,
On YouTrack, I recently submitted a bug report: https://youtrack.jetbrains.com/issue/KT-53816
After a patch, the issue appeared to be fixed (I could not reproduce in simplified test example), but after working with my normal code base, the issue continues to occur. I’ve even updated to a newer patch, but no luck.
I’ve added a new comment to the report, but I’m not sure if that will re-open it or if there’s more I should do.