I get these errors DMD 1.055:

(void(char[] _param_0))()
bug.d(2): Error: expected 1 function arguments, not 0
(void(char[] _param_0))()
bug.d(15): Error: template instance bug.Foo!(a) error instantiating

//code----------------------------------------------------------------------------------------------

void Foo(alias X)() {
        pragma(msg,typeof(X).stringof);
}

class A {
        void a(char[]) {
        }

        void b() {
        }
}

void main() {

        Foo!(A.a)(); //doesnt work
        Foo!(A.b)(); //works

}

//end of code 
----------------------------------------------------------------------

Reply via email to