There seems to be a bug in Kotlin 2.5.0-Beta2: A v...
# getting-started
s
There seems to be a bug in Kotlin 2.5.0-Beta2: A var-variable is wrongly marked as not being modified in an init-block even though it is reassigned. Not only in the UI but also in the gradle output. In Kotlin 2.5.0-Beta1 the gradle output is fine, but the UI still warns about it.
✅ 1
r
I noticed the same recently, but I'm not on any beta version. I thought it was just IntelliJ since I had just updated it, and didn't dig any deeper
s
Hi! Looks like KT-90674 Extra checkers: False positive “This ‘var’ property is never written to” for local var in class property initializer or init block And going to be fixed in 2.5.20
👍 1