-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hasIndirections doesn't handle static arrays of length 0 correctly (they don't actually have any indirections), because operator precedence resulted in the check for 0 length static arrays having no actual effect. I also copied the test for https://issues.dlang.org/show_bug.cgi?id=12000 from std.traits to here, because it's really a compiler bug that's being tested rather than hasIndirections itself (so being in the compiler repo arguably makes more sense), and it also arguably makes more sense to put it next to the actual implementation than in std.traits where it's been.
- Loading branch information
Showing
1 changed file
with
102 additions
and
1 deletion.
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