[Issue 3279] Type tuple comparison fails
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 29 08:53:56 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3279
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
CC| |clugdbug at yahoo.com.au
Severity|blocker |major
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-10-29 08:53:55 PDT ---
This is a diagnostic bug. The error message is highly misleading. Even this
won't compile:
static assert (TypeTuple!(long, int) == TypeTuple!(long, int));
And it *shouldn't* compile, since they are types, not expressions, so they
can't be compared with ==. The code should be rewritten as:
static assert (is(snoC!(int, TypeList!(long)).toTuple == TypeTuple!(long,
int)));
which compiles. Downgrading from blocker to major.
While investigating this I found bug 3451.
--
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