UFCS on Enum in Member Function

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 9 13:43:17 PST 2016


On Tuesday, 9 February 2016 at 21:05:50 UTC, jmh530 wrote:
> For instance, in the code below, I could use Baz but not Caz. 
> It seems to work when I use the alternate version of Caz 
> calling a non-member function.
>
> Bug?

No bug; works as intended. UFCS can only be used with free 
functions, not with methods.


More information about the Digitalmars-d-learn mailing list