[Issue 7203] New: Method pointer types differ depending on context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 2 12:23:13 PST 2012


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

           Summary: Method pointer types differ depending on context
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2012-01-02 20:23:09 GMT ---
class A {
  void foo() {
    pragma(msg, typeof(&A.foo).stringof);
  }
}
pragma(msg, typeof(&A.foo).stringof);

This produces:
----
void function()
void delegate()
----

However it should produce void function() in both cases.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list