[Issue 10871] New: Typedef doesn't work with is null

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 22 15:05:23 PDT 2013


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

           Summary: Typedef doesn't work with is null
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: john.loughran.colvin at gmail.com


--- Comment #0 from John Colvin <john.loughran.colvin at gmail.com> 2013-08-22 23:05:22 BST ---
import std.typecons;

alias Typedef!(void*) VP;

void main()
{
    VP vp; 
    assert(vp is null);  //won't compile
}

Error: incompatible types for ((vp) is (null)): 'Typedef!(void*, null)' and
'typeof(null)'

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