Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
repeat.for on Set leading to negative index #284
I'm submitting a bug report
Please tell us about your environment:
When manipulating a
It is highlighted in the following gist: https://gist.run/?id=ceda36a5c6481c2b629e7b117864c3c7
With files and line numbers we get:
It is caused by the fact index equals -1 in
I suspect a
@EisenbergEffect , @jdanyow and @martingust I'm having a go at this. I've already added a few basic tests for SetRepeatStrategy, but as ViewSlot is mocked the error cannot be reproduced in a test here.
Anyway, it looks like there are 2 ways to fix this:
In your opinion, where should the change occur ? I'd lean towards 2., I've tested it and it seems to work without any side effects.