Bug 9234 – DMD confuses string template parameter with function
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-12-28T04:45:00Z
Last change time
2012-12-28T12:52:54Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
puneet
Comments
Comment #0 by puneet — 2012-12-28T04:45:29Z
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