https://d.puremagic.com/issues/show_bug.cgi?id=12143
Summary: Base class is forward referenced Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: samu...@voliacable.com --- Comment #0 from Max Samukha <samu...@voliacable.com> 2014-02-12 11:57:08 PST --- class Node { alias typeof(true ? Node.init : Class.init) V; } class Type : Node { } class Class : Type { } void main() { } ---- bug.d(10): Error: class bug.Class base class is forward referenced by Node bug.d(10): Error: class bug.Class base class is forward referenced by Node bug.d(10): Error: class bug.Class base class is forward referenced by Object bug.d(10): Error: class bug.Class base class is forward referenced by Object bug.d(3): Error: incompatible types for ((null) : (null)): 'bug.Node' and 'bug.Class' This renders std.traits.CommonType unusable in certain situations. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------