[Issue 5763] New: traits.d BaseClassesTuple function incorrectly handles Object class argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 21 12:44:18 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5763
Summary: traits.d BaseClassesTuple function incorrectly handles
Object class argument
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: piv at bk.ru
--- Comment #0 from Pupatenko Ilya <piv at bk.ru> 2011-03-21 12:41:01 PDT ---
It is said in documentation of std.traits module that "BaseTypeTuple!(Object)
returns the empty type tuple."
But in D 2.052 the follownig code fails to compile:
import std.traits, std.typetuple, std.stdio;
void main()
{
writeln(typeid(BaseClassesTuple!Object));
}
The error message is:
<...>\src\phobos\std\traits.d(1772): Error: tuple index 0 exceeds 0
--
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