UFCS not working with alias

Andre Pany via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 7 01:06:54 PDT 2016


Hi,

I just noticed ufcs does not work with alias. Is this limitation 
needed?

void foo(int a) {}

void main()
{
	alias bar = foo;
	3.foo();
	3.bar();
}

Last line fails  with "no property 'bar' for type int.

Should I open an enhancement request?

Kind regards
André


More information about the Digitalmars-d-learn mailing list