← Back to index
|
Original Bugzilla link
Bug 7327 – Nested overload sets are not resolved correctly
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-20T10:04:00Z
Last change time
2014-07-29T23:30:24Z
Assigned to
nobody
Creator
code
Comments
Comment #0
by code — 2012-01-20T10:04:18Z
---- buga.d ---- void foo() {} ---- bugb.d ---- public import bugc, bugd; ---- bugc.d ---- void foo(int, int) {} ---- bugd.d ---- void foo(int) {} ---- main.d ---- import buga; import bugb; void main() { foo(2); } ----- dmd -c main ---- bug.d(6): Error: buga.foo at buga.d(1) conflicts with __anonymous at bug.d(6): Error: function buga.foo () is not callable using argument types (int) bug.d(6): Error: expected 0 arguments, not 1 for non-variadic function type void() -------------------------------------- This should resolve to bugd.foo.
Comment #1
by code — 2012-01-21T23:21:41Z
Follow up of:
http://d.puremagic.com/issues/show_bug.cgi?id=7131
Github Pull:
https://github.com/D-Programming-Language/dmd/pull/635
Comment #2
by hsteoh — 2014-07-29T23:27:15Z
Appears to have been fixed by
https://github.com/D-Programming-Language/dmd/pull/3388
(Tested on Linux/64bit, on git HEAD).
Comment #3
by code — 2014-07-29T23:30:24Z
*** This issue has been marked as a duplicate of issue 12242 ***