-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an assertion if particular indices in an array/struct are duplica…
…tes. Fix struct/array index lookup if the previous entry used a designated initializer, but this particular entry didn't. In that case, our index is the previous member's index + 1, but we used to use the counter as index, which is wrong. Also fix the unit test, which contained code triggering both problems, which ended up going in an infinite loop.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters