[Issue 7208] New: Unique arrays should be covariant
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Jan  2 22:02:22 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7208
           Summary: Unique arrays should be covariant
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          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-02 22:02:21 PST ---
class A{}
void foo(Object[]){}
A[] bar()pure{return new A[16];}
void main(){
    foo([new A]);   // error                                                    
    foo(new A[16]); // error                                                    
    foo(bar());     // error                                                    
}
The code should compile.
-- 
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