[Issue 1225] Super Class method hides the global template from mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 12 11:28:53 UTC 2019


RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID

--- Comment #3 from RazvanN <razvan.nitu1305 at gmail.com> ---
I don't think that this is actually a bug. You can specify that you want the
outer scope symbol by using in this line in the child class (with the mixin in
the parent class uncommented):

mixin .dup!(deriveclass);

But then you will end up with an error stating you forgot to use the override

Error: cannot implicitly override base class method
test.baseclass.dup!(baseclass).dup with test.deriveclass.dup!(deriveclass).dup;
add override attribute

This is the correct, documented behavior.

Closing as invalid. Please reopen if I am missing something.


More information about the Digitalmars-d-bugs mailing list