Kaj Koivunen
02/10/2023, 10:25 AMnext
hold some special meaning as a class member name? I'm curious because in IntelliJ code like
class foo {
var next: foo? = null
var previous: foo? = null
var prev: foo? = null
}
Generates unused warning for the class itself, previous
and prev
as expect but not for `next`(none of these are mentioned anywhere outside the class, of course). I.e. what is using the member next
in my class and will I run into trouble down the road if I use that name?Kaj Koivunen
02/10/2023, 10:36 AMnext
appears in iterator, since hasNext
will also not generate unused, but I'm not exactly sure why this applies to a new class that has nothing to do with iteratorVampire
02/10/2023, 12:10 PMmkrussel
02/10/2023, 1:14 PM