[Issue 3626] New: alias this prevents appending to array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 17 10:36:21 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3626
Summary: alias this prevents appending to array
Product: D
Version: 2.036
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: michel.fortin at michelf.com
--- Comment #0 from Michel Fortin <michel.fortin at michelf.com> 2009-12-17 13:36:20 EST ---
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[]
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list