[Issue 7504] New: Cannot assign an object of type 'typeof(null)' to an array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 15 03:51:02 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7504
Summary: Cannot assign an object of type 'typeof(null)' to an
array
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at gmail.com 2012-02-15 03:50:59 PST ---
Test case:
void test7504()
{
auto n = null;
char[] k = n; // even 'cast(char[])n' won't work.
}
Note that this goes against bug 3889, but [] doesn't work either because it is
of type 'void[]' (see bug 5416), although 'cast(char[])emptyArray' would work
in that case.
--
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