[Issue 5199] null implicitly converts to any other type on array assignment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 16 21:40:22 PST 2010


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



--- Comment #5 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> 2010-11-16 21:39:09 PST ---
Disambiguation will make it hard to copy empty slices... well... such operation
is not needed too much either.
---
foo[]=(cast(Foo[])null)[]; //copy null slice
foo[]=null; //should not typecheck, expected foo[]=Foo(...);
---

-- 
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