← Back to index
|
Original Bugzilla link
Bug 6966 – cannot create qualified type from tuple entry
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-11-17T07:30:00Z
Last change time
2016-08-09T21:49:21Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
timon.gehr
Comments
Comment #0
by timon.gehr — 2011-11-17T07:30:09Z
template X(T...){ alias const(T[0]) X; } static assert(is(X!(int) == const(int))); // fail The static assertion should pass.
Comment #1
by timon.gehr — 2011-11-17T07:30:25Z
Workaround: template XImpl(T...){ alias T[0] _; alias const(_) X; } template X(T...){alias XImpl!T.X X;} static assert(is(X!(int) == const(int))); // pass
Comment #2
by k.hara.pg — 2012-07-19T06:10:48Z
https://github.com/D-Programming-Language/dmd/pull/1055
Comment #3
by ag0aep6g — 2016-08-09T21:49:21Z
The pull request has been merged and the test case passes since 2.061. Closing as FIXED.