Comment #0 by thelastmammoth — 2013-07-09T20:01:06Z
----main.d:
int fun() {return 1;}
int fun() {return 2;}
void main(){}
----
dmd -run main.d
this compiles, but shouldn't
(compile error only occurs when referring to fun)
Comment #1 by maxim — 2013-07-09T21:49:40Z
I am sure this is a dup of some issue but cannot find it right now.
Comment #2 by thelastmammoth — 2013-07-10T09:21:02Z
Are you sure? I couldn't find a similar issue (if anything the title should contain "multiple definitions").
Seems like an obvious bug.
Comment #3 by yebblies — 2013-08-20T07:53:14Z
Reaaaaaaaaly old bug.
Was originally bug 895.
*** This issue has been marked as a duplicate of issue 2789 ***