Open ToufiPF opened 1 year ago
This appears to be a duplicate of dart-lang/core#656.
That issue was fixed, but it looks like there hasn't been a release since the fix. So this report can be taken as a reminder that it would be good to make a release.
Consider this snippet:
Expected output
Printing the list: "0 1 2 3".
Actual behavior
Calling
ListExtensions.slice
when theList
is actually aListSlice
enters an infinite recursion, and triggers a StackOverflow. Stacktrace:Auxilliary info
The following snippet will not throw, but has incorrect behavior: it prints "0 2 2 2" instead of "0 1 2 3"
Version
Collection version: 1.17.2