← Back to index
|
Original Bugzilla link
Bug 15170 – default arguments from expression tuple don't work
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-07T08:32:17Z
Last change time
2019-08-10T21:50:17Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
ag0aep6g
Comments
Comment #0
by ag0aep6g — 2015-10-07T08:32:17Z
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 () */ }
Comment #1
by ag0aep6g — 2019-08-10T21:50:17Z
*** This issue has been marked as a duplicate of issue 18572 ***