Bug 12675 – alias parameter with a specAlias which is a type is not properly implemented

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-28T18:52:00Z
Last change time
2014-04-28T18:54:26Z
Keywords
rejects-valid
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2014-04-28T18:52:19Z
----- template TemplType( /* alias */ TypeParamSpecType : int ) { } template TemplAlias( alias AliasParamSpecType : int ) { } void main() { alias a = TemplType!int; // ok alias b = TemplAlias!int; // error } ----- Note that it works when specAlias is a value and not a type: ----- template TemplValue( int x : 2 ) { } template TemplAlias( alias x : 2 ) { } void main() { alias a = TemplValue!2; // ok alias b = TemplAlias!2; // ok } -----
Comment #1 by andrej.mitrovich — 2014-04-28T18:54:26Z
Nevermind.