[Issue 18263] selective import with same name masks out this reference in mixin template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 19 13:16:49 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18263

--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
Come to think of it, there should be no this in static context, so if you
remove the static keyword from the foo function, the code will compile. In this
case, the compiler should error stating that you cannot you this in a static
context.

--


More information about the Digitalmars-d-bugs mailing list