Closed Lordfirespeed closed 8 months ago
Truthfully, the same issue is apparent with stdlib
builtins such as listOf
, so perhaps this is more of a them problem. :joy:
Hi,
Because PersistentList
is an interface and does not provide hashCode
implementation, navigating to the function leads to the Any.hashCode()
. This is an expected behavior of the IntelliJ IDEA.
For example,
PersistentList
. The interface declaration:reasonably claims it implements the
List
interface.The base implementation declaration:
inherits
stdlib
'sAbstractList
, which contains methods not present in theList
interface, such asfun equals(other: Any?): Boolean
fun hashCode(): Int
Which means that following the declaration of a
PersistentList
'shashCode
function, for example, will go toAny#hashCode
, which is misleading.