[Issue 2006] Appending empty array using ~= doesn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 21 13:08:17 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2006
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
Keywords| |wrong-code
------- Comment #2 from smjg at iname.com 2008-11-21 15:08 -------
(In reply to comment #1)
> [] could be an empty array of any type. So the compiler is interpreting it as
> an empty string[][], not an empty string[]. You have a T[], you concat an
> empty T[], your original array isn't supposed to change.
But it has been explicitly cast to a string[]. How can a CastExpression be of
any type other than that to which it is cast?
--
More information about the Digitalmars-d-bugs
mailing list