Bug 9836 – std.array.popFront does not work with alias this.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-30T06:51:00Z
Last change time
2013-04-05T06:56:57Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
tobias
Comments
Comment #0 by tobias — 2013-03-30T06:51:40Z
---
struct Wrapper {
int[] data;
alias data this;
};
void main() {
Wrapper w = Wrapper([1,2,3,4]);
std.array.popFront(w); // compile time error: no working overload for popFront.
---
std.array.popFront should work with subtypes of T[] created via alias this.
See also: #9835