e: java.lang.AssertionError: Rewrite at slice LEAKING_THIS key: REFERENCE_EXPRESSION
old value: NonFinalProperty(property=public open val block:
jsonDescripter.ListTag<*>.() -> kotlin.Unit defined in jsonDescripter.ListTag[PropertyDescriptorImpl@37668991],
classOrObject=CLASS)@152176980
new value: NonFinalClass(klass=class ListTag, classOrObject=CLASS)@1806695413
The error happened when I compliered two .kt files with ide providing no fatal error
But I didn’t kown why it occured except knowing that it is an AssertionError
Anything related I found is at
I’m a bit confused. Kotlin version 1.4.0 is not released (as far as I know). Are you using the RC build? In that case you might want to also use the RC build for the kotlin plugin. IDEA > tools > kotlin > konfigure kotlin plugin update. You can set the update channel to “Early Access Preview 1.4.x”
The discussion you linked leads to an old issue in a 1.0.4 eap release that has been fixed. Maybe it’s a regression error or something new that looks the same. In any case you should link to https://youtrack.jetbrains.com/issue/KT-13371 if you create a new issue.
Mmmm… I haven’t seen that one. But I’m guessing the 1.4.0 release not yet finished. Otherwise there would have been an announcement about it. It’s probably still missing the release of a few libraries and tools.
Also for anyone else interested here is the new youtrack issue: https://youtrack.jetbrains.com/issue/KT-41131