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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from John Colvin <[email protected]> 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: -------