Bug 8438 – [0.60 beta] delegate default arguments

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-25T10:08:00Z
Last change time
2012-07-25T11:44:18Z
Assigned to
nobody
Creator
destructionator

Comments

Comment #0 by destructionator — 2012-07-25T10:08:50Z
I tried the beta again and got a sea of errors... minimized to this: === void main() { void delegate(int a, int b = 10) test; test(10); // line 4 } === $ dmd regression2.d regression2.d(4): Error: expected 2 function arguments, not 1 In the 2.059 dmd, this would work, using the default argument on the delegate.
Comment #1 by bugzilla — 2012-07-25T11:44:18Z
*** This issue has been marked as a duplicate of issue 3866 ***