http://d.puremagic.com/issues/show_bug.cgi?id=5284



--- Comment #1 from Sobirari Muhomori <dfj1es...@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: -------

Reply via email to