Bug 2677 – Alias type parameters not visible in concept-if clauses
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-02-19T16:49:00Z
Last change time
2015-06-09T05:14:53Z
Assigned to
bugzilla
Creator
andrei
Comments
Comment #0 by andrei — 2009-02-19T16:49:47Z
This may be related to bug 2676. The following code fails to compile by claiming that "T" does not exist in the concept-if clause.
void foo(T...)(T ts)
if (T.length > 1)
{
}
void main()
{
foo(1, 2);
}