---- import std.stdio; struct test { int foo(int k) //forgot to defined as static { return k; } } int main(string[] argv) { int function(int) fp; fp = &test.foo; //this should not be possible, as foo is not static. it allows dirty hacks, though. int x = fp(99); writeln(x); return 0; } ----
*** This issue has been marked as a duplicate of issue 3720 ***