[Issue 7291] New: UFCS doesn't work for static member functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 14 12:07:55 PST 2012


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

           Summary: UFCS doesn't work for static member functions
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-01-14 12:07:54 PST ---
module test;

struct Foo
{
    static void func(string x) { }
    void foo() { "".func(); }
}

void main() { }

test.d(6): Error: undefined identifier module test.func

-- 
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