Bug 5763 – traits.d BaseClassesTuple function incorrectly handles Object class argument

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-03-21T12:41:00Z
Last change time
2013-01-08T17:40:02Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
piv

Attachments

IDFilenameSummaryContent-TypeSize
932patchTrivial patch to fix an issuetext/plain395

Comments

Comment #0 by piv — 2011-03-21T12:41:01Z
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
Comment #1 by piv — 2011-03-21T12:43:10Z
Created attachment 932 Trivial patch to fix an issue
Comment #2 by piv — 2011-03-21T12:47:58Z
(In reply to comment #0) > It is said in documentation of std.traits module that "BaseTypeTuple!(Object) > returns the empty type tuple." I made a mistake, should be "BaseClassesTuple!(Object)"
Comment #3 by andrej.mitrovich — 2013-01-08T13:22:59Z
Comment #4 by andrei — 2013-01-08T17:40:02Z