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: nob...@puremagic.com
        ReportedBy: kenn...@gmail.com


--- Comment #0 from kenn...@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: -------

Reply via email to