Bug 9076 – Aliased template function and property resolution doesn't work

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-25T08:21:00Z
Last change time
2012-12-04T18:29:45Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-11-25T08:21:44Z
This code doesn't work. //import std.algorithm : forward; template forward(args...) { @property forward()(){ return args[0]; } } void main() { int a = 1; int b = 1; assert(a == forward!b); }
Comment #1 by k.hara.pg — 2012-11-25T09:12:40Z
Comment #2 by github-bugzilla — 2012-12-03T18:00:37Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b295355275a046e789344458763534c104b23224 fix Issue 9076 - Aliased template function and property resolution doesn't work https://github.com/D-Programming-Language/dmd/commit/ac6734d3639615a92b1926d20ad720a8c819e288 Merge pull request #1326 from 9rnsr/fix9076 Issue 9076 - Aliased template function and property resolution doesn't work