https://issues.dlang.org/show_bug.cgi?id=20110
--- Comment #1 from Andrej Mitrovic <[email protected]> --- Ah I botched up the code sample, great. This is the one: ----- import std.stdio; alias void function(int, int) Callback; void passCallback ( Callback cb ) { cb(10, 20); } class C { static this() { passCallback(&test); // doesn't fail???? } void test (int foo, int bar) { writefln("foo: %s, bar: %s", foo, bar); } } void main () { auto c = new C; static assert(!is(typeof(passCallback(&c.test)))); // correct } ----- --
