[Issue 15897] private base functions not callable from base class module without type change

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Apr 21 17:17:59 PDT 2016


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

--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Steven Schveighoffer from comment #4)
> private void create(Animal animal) { import std.stdio; writeln("ufcs"); }
> 
> class Animal
> {
>     void create() { import std.stdio; writeln("member"); }
> }
> 
> void main() { foo(new Cat); }
> 
> prints: ufcs
> 
> In 2.070.2 it prints: member

That's what everyone has been asking for.

--


More information about the Digitalmars-d-bugs mailing list