Bug 5456 – function default parameter appears to propagate to other functions

Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-01-16T11:03:00Z
Last change time
2015-06-09T05:15:16Z
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2011-01-16T11:03:02Z
the code: void badurk ( in int[] i = [1]){ } void quadurk(in int[]){ } pragma(msg, typeof(&badurk)); pragma(msg, typeof(&quadurk)); void main(){ } the result: void function(in const(int[]) i = [1]) void function(in const(int[]) i = [1]) it doesn't allow calling `quadurk()`, though.
Comment #1 by yebblies — 2011-07-03T05:23:21Z
*** This issue has been marked as a duplicate of issue 3646 ***