https://issues.dlang.org/show_bug.cgi?id=15170
Issue ID: 15170
Summary: default arguments from expression tuple don't work
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
alias Tuple(Stuff...) = Stuff;
void foo(Tuple!(int, float) args = Tuple!(1, 2f)) {}
void main()
{
foo(1, 2); /* accepted */
foo(); /* Error: function test.foo (int _param_0, float _param_1) is not
callable using argument types () */
}
--