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

           Summary: Empty tuples don't match
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bart...@relisoft.com


A tuple containing an empty tuple is not the same as an empty tuple and two
such beasts are considered incompatible.
----
import std.typetuple;

template TypeList(T...)
{
    alias T toTuple;
}

static assert (TypeList!().toTuple == TypeTuple!());
----
Error: incompatible types for ((()) == (())): '()' and '()'

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

Reply via email to