<div>Greetings All</div><div><br></div><div>Using DMD 2.059, the following code does not compile. DMD does not allow me to apply stringof on a function alias of a function that takes one or more arguments. It compiles and runs fine for functions that do not take any arguments.</div>

<div><br></div><div>Is it a bug, or am I doing something wrong here?</div><div><br></div><div>Regards</div><div>- Puneet</div><div><br></div><div>class Foo {</div><div>  void foo() { }</div><div>  void frop(int n) { }</div>

<div>}</div><div><br></div><div>void callfoo(alias F, T) (T t) {</div><div>  import std.stdio;</div><div>  writeln(F.stringof);</div><div>}</div><div><br></div><div>void main() {</div><div>  Foo f = new Foo();</div><div>
  callfoo!(Foo.foo)(f); // This works</div>
<div>  callfoo!(Foo.frop)(f); // This does not work</div><div>}</div><div><br></div>