[Issue 5284] Array ops punch through const system
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Nov 28 09:14:35 PST 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=5284
--- Comment #1 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> 2010-11-28 09:13:10 PST ---
Interesting...
---
class A { int m=5; }
int main()
{
    A[] a=new A[1];
    int[] b=[0];
    a[]=b[];
    return 0;
}
---
this code gives error: cannot implicitly convert expression (b[]) of type int[]
to const(A[]). Seems like the compiler tries to cast right-hand expression to
const(typeof(left-hand expression)), then proceeds with copying.
-- 
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