yebblies <> changed:

           What    |Removed                     |Added
            Summary|Appending empty array using |Empty array literals with
                   |~= cast(T[]) [] doesn't     |explicit type implicitly
                   |work                        |convert to any array type

--- Comment #9 from yebblies <> 2012-02-04 13:10:58 EST ---
No, you're wrong.  I just wrote a patch to fix this bug, I think I know where
the problem was and what I had to change to fix it.

struct S {}

void main()
        int[] x = cast(S[])[];

It has nothing to do with appending, but the fact that for T[][] the compiler
has to choose to append an empty array as a T[] or a T[][], and it does this by
checking implicit conversions, which pass incorrectly.

Please at least read the patch before deciding you know what the problem is.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to