Bug or not? "Functions cannot return a function"

Meta via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 16 17:27:45 PST 2016


auto bug(alias f)()
{
     return cast(typeof(f))&f;
}

void fun() {}

void main()
{
	bug!fun(); //Error: functions cannot return a function
}


More information about the Digitalmars-d mailing list