December 05, 2012 [Issue 9114] New: Can't call varadic template function with partly specified template parameters | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9114 Summary: Can't call varadic template function with partly specified template parameters Product: D Version: D1 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: mathias.baumann@sociomantic.com --- Comment #0 from Mathias Baumann <mathias.baumann@sociomantic.com> 2012-12-05 10:46:41 PST --- The test case: module main; void test ( int a, Args...) ( Args args ){} void main ( char[][] arg) { test!(5)(3); } The error: main.d(7): Error: function main.test!(5).test (() args) does not match parameter types (int) main.d(7): Error: expected 0 arguments, not 1 for non-variadic function type void(() args) In D2 this compiles without problem. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation