Bug 1562 – Deduction of template alias parameter fails
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-10-09T18:35:00Z
Last change time
2015-06-09T05:14:38Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2007-10-09T18:35:27Z
// Should compile on 1.0 and 2.0; does not:
template Foo(T : S!(T), alias S)
{
alias int Foo;
}
struct Struct(T)
{
}
void main()
{
Foo!(Struct!(int)) f;
}