The exception thrown when calling current
on a ListIterator
before calling moveNext()
when E is non-nullable is unclear
#47757
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-duplicate
Closed in favor of an existing report
library-core
type-enhancement
A request for a change that isn't a bug
I would expect the following code to throw an exception like
StateError
with a message likecannot read current value of an iterator before the moveNext() method has been called at least once
or some such:Instead the error is:
...which is rather misleading.
The text was updated successfully, but these errors were encountered: