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: nob...@puremagic.com ReportedBy: verylonglogin....@gmail.com --- Comment #0 from Denis <verylonglogin....@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: -------