www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2867] New: stringof is broken

http://d.puremagic.com/issues/show_bug.cgi?id=2867

           Summary: stringof is broken
           Product: D
           Version: 2.028
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: davidl 126.com


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"


-- 
Apr 21 2009