[Issue 13106] New: Auto ref error when using argument tuple in non-template function
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jul 12 04:49:07 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13106
Issue ID: 13106
Summary: Auto ref error when using argument tuple in
non-template function
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: trivial
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: czdanol at gmail.com
Hey,
this code does not work:
template Test( Args ... ) {
void test( auto ref Args args ) {
}
}
void main() {
Test!int.test( 5 );
}
And this one does:
template Test( Args ... ) {
void test()( auto ref Args args ) {
}
}
void main() {
Test!int.test( 5 );
}
--
More information about the Digitalmars-d-bugs
mailing list