Kenji Hara <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Kenji Hara <> 2011-12-17 18:12:05 PST ---
This is not an issue.
> Mixin Scope
> The declarations in a mixin are ‘imported’ into the surrounding scope. If
> the name of a declaration in a mixin is the same as a declaration in the
> surrounding scope, the surrounding declaration overrides the mixin one:

If you want to merge overloads, you can add alias declaration to do it.

template T() {
  int m_attr;
  const {int attr() {return m_attr;}}
struct S {
  mixin T t;
  void attr(int n) {m_attr = n;}
  alias t.attr attr;    // Merge overloads
int main() {
  const S s;
  int r;
  r = s.attr();
  return r;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to