[Issue 8438] New: [0.60 beta] delegate default arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 25 10:08:52 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8438
Summary: [0.60 beta] delegate default arguments
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: destructionator at gmail.com
--- Comment #0 from Adam D. Ruppe <destructionator at gmail.com> 2012-07-25 10:08:50 PDT ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list