Bug 3626 – alias this prevents appending to array

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-12-17T10:36:00Z
Last change time
2012-02-01T07:36:16Z
Keywords
rejects-valid
Assigned to
nobody
Creator
michel.fortin

Comments

Comment #0 by michel.fortin — 2009-12-17T10:36:20Z
The following doesn't compile: struct S { int member; alias member this; } void test() { S[] s; s ~= S(); // Error: cannot append type int to type S[] }
Comment #1 by yebblies — 2012-02-01T07:36:16Z
This works with the current compiler (2.058)