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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to