Everything as working correctly, but a few days ago I noticed that sorting was incorrect. After debugging I saw this message
java.lang.IllegalAccessError: Field '.TagModel.isFollowed' is inaccessible to class 'Generated_for_debugger_class$generated_for_debugger_fun$$inlined$sortedBy$1' (declaration of 'Generated_for_debugger_class$generated_for_debugger_fun$$inlined$sortedBy$1' appears in /data/user/0/.debug/Anonymous-DexFile@1099533879.jar).
The code is this.tags.sortedWith(compareBy { it.isFollowed })
. Has something changed in Kotlin? What can be an issue here?
tags
is a list of data classes, nothing special. It has @Parcelize
annotation, would that affect it at all? Seems weird.