July 12, 2019 [Issue 1225] Super Class method hides the global template from mixin | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=1225 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |INVALID --- Comment #3 from RazvanN <razvan.nitu1305@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 keyword: 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. -- |
Copyright © 1999-2021 by the D Language Foundation