[Issue 106] template - mixin sequence

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 2 02:21:27 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=106





--- Comment #13 from Walter Bright <bugzilla at digitalmars.com>  2009-07-02 02:21:27 PDT ---
A simpler example:

=== test.d ===
import list, arm;

class Queue {
  mixin List;
  Arm a;
}

class MessageQueue : Queue { }

=== arm.d ===
import list, test;

class Arm {
  mixin List;
  MessageQueue.ListHead mqueue;
}

=== list.d ===
template List() {
  struct ListHead { }
}

===================
compile with:
 dmd test
gives:
test.d(8): Error: class test.MessageQueue is forward referenced when looking
for 'ListHead'

-- 
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