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

           Summary: Parsing error on some templated methods calls
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Nicolas Sicard <[email protected]> 2012-12-28 04:20:19 PST 
---
I think this should compile:
---
struct Foo {
    void bar(T)() {}
    void baz() {}
}

void main() {
    Foo foo;
    (foo).bar!int();   // Error: found '!' when expecting ';' following
statement
    ((foo)).bar!int(); // OK
    foo.bar!int();     // OK
    (foo).baz();       // OK
}
---
(DMD 2.060 MacOSX)

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

Reply via email to