[Issue 6810] New: Strange `tuple used as a type` error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 13 02:02:42 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6810

           Summary: Strange `tuple used as a type` error
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: verylonglogin.reg at gmail.com


--- Comment #0 from Denis <verylonglogin.reg at gmail.com> 2011-10-13 02:01:46 PDT ---
Strange `tuple used as a type` error if using: template tuple parameter + named
argument of its type + an constraint.
---
void f(int n)(int) { }
void f(U...)(U)    { } // ok
void f(U...)(U a)  { } // ok
void f(U...)(U)   if(true) { } // ok
void f(U...)(U a) if(true) { } // Error: tuple U is used as a type

void main() { f!0(0); }
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list