Bug 8515 – [regression] calling function types with default args fails

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-08-06T14:56:00Z
Last change time
2012-08-06T15:31:02Z
Keywords
rejects-valid
Assigned to
nobody
Creator
spam

Comments

Comment #0 by spam — 2012-08-06T14:56:05Z
this code used to work in dmd 2059: void foo(bool c = true) {} void main() { void function(bool c = true) _foo = &foo; _foo(); }
Comment #1 by spam — 2012-08-06T14:56:54Z
dmd 2.06 says: "main.d(10): Error: expected 1 function arguments, not 0"
Comment #2 by bugzilla — 2012-08-06T15:31:02Z
*** This issue has been marked as a duplicate of issue 3866 ***