class D
{
int foo(int i){}
}
pragma(msg, D.foo.stringof);
teststringof.d(6): Error: function teststringof.D.foo (int i) does not match parameter types ()
teststringof.d(6): Error: expected 1 function arguments, not 0
foo()
What I love to see is that it prints "foo"
Comment #1 by hsteoh — 2015-08-24T04:52:57Z
Still happens on git HEAD. Verified on git HEAD (5b468ace36ac8eaa6de215b1e376aece9ccc1084), Linux/64-bit.
Comment #2 by andrei — 2016-10-14T01:14:41Z
FWIW this prints "& foo":
class D
{
int foo(int i){ return 0; }
}
pragma(msg, (&D.foo).stringof);
void main(){}