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

           Summary: DMD confuses string template parameter with function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Puneet Goel <[email protected]> 2012-12-28 04:45:29 PST 
---
Here is a reduced testcase. Compiles with release 2.060 but fails with the
current github snapshot with an error:

test.d(8): Error: need 'this' for bar type void()
test.d(3): Error: Foo!(bar) is used as a type



class Fizz {                      //  1
  void bar() { }                  //  2
  Foo!bar foobar;                 //  3
}                                 //  4
                                  //  5
struct Foo (alias F) { }          //  6
                                  //  7
struct Foo (string THUNK) { }     //  8
                                  //  9
void main() { }                   // 10

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

Reply via email to