The following:
----
class HomeController {
void* foo() {
return cast(void*)&HomeController.displayDefault;
}
auto displayDefault() {
return 1;
}
}
----
Gives the error:
----
merge.d(3): Error: forward reference to this.HomeController.displayDefault
----
When compiled with dmd 2.057 on ubuntu 32. Changing the return type of displayDefault to anything other than auto fixes the error. Possibly related to http://d.puremagic.com/issues/show_bug.cgi?id=5933