← Back to index
|
Original Bugzilla link
Bug 12036 – Wrong code with auto-returning function as mixin alias param
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-29T20:49:00Z
Last change time
2015-06-17T21:04:07Z
Keywords
wrong-code
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0
by dlang-bugzilla — 2014-01-29T20:49:53Z
template T(alias a) { string value; } struct S { auto fun() { } mixin T!fun; } void main() { S s; assert(s.value == ""); }
Comment #1
by k.hara.pg — 2015-03-01T01:47:11Z
Works from 2.066.
Comment #2
by github-bugzilla — 2015-04-02T13:14:34Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/7d4f57eee52d6656ee5fcfc658184d2a96277e7a
fix Issue 12036 - Wrong code with auto-returning function as mixin alias param
Comment #3
by github-bugzilla — 2015-06-17T21:04:07Z
Commit pushed to stable at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/7d4f57eee52d6656ee5fcfc658184d2a96277e7a
fix Issue 12036 - Wrong code with auto-returning function as mixin alias param