[Issue 3278] New: Empty tuples don't match
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 1 15:23:50 PDT 2009
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: nobody at puremagic.com
ReportedBy: bartosz at 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: -------
More information about the Digitalmars-d-bugs
mailing list