Summary: Named mixins and member functions
           Product: D
           Version: 1.039
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

Functions inserted into a class using named mixins should be considered
separate functions.

template Signal
  void connect();

class AbstractButton
  mixin Signal clicked;

class CheckBox : AbstractButton
  mixin Signal toggled;
  mixin Signal kicked; 

CheckBox.toggled.connect shouldn't override AbstractButton.clicked.connect.
CheckBox.kicked has nothing to do with AbstractButton.clicked, but currently it
causes compilation to fail: "CheckBox.Signal!().connect multiple overrides of
same function".


Reply via email to