www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2677] New: Alias type parameters not visible in concept-if clauses

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2677

           Summary: Alias type parameters not visible in concept-if clauses
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com


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);
}


-- 
Feb 19 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2677


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2009-03-11 14:58 -------
Fixed dmd 2.026


-- 
Mar 11 2009