www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2605] New: Null literal is not implicitly castable to const return type

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2605

           Summary: Null literal is not implicitly castable to const return
                    type
           Product: D
           Version: 2.023
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


class C {}

const(C) foo()
{
    return null;
}

Error: e2ir: cannot cast from void* to const(C)


-- 
Jan 23 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2605


Gide Nwawudu <gide nwawudu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |gide nwawudu.com
         Resolution|                            |WORKSFORME




--- Comment #1 from Gide Nwawudu <gide nwawudu.com>  2009-05-13 06:35:09 PDT ---
Works in DMD 2.030.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 13 2009