[Issue 7318] New: Cannot concatenate arrays of super- and subtype
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 19 01:57:38 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7318
Summary: Cannot concatenate arrays of super- and subtype
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-01-19 01:57:30 PST ---
The recent fixes regarding array covariance had some side-effects:
void main(){
auto a = [new Object()];
auto b = [new Exception("")];
auto y = a~b; // error
}
This code should still work, even though Exception[] does not implicitly
convert to Object[] anymore. (the code works if a is declared const)
--
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