Bug 4011 – Incorrect function overloading using mixins

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-03-26T11:59:00Z
Last change time
2015-06-09T05:14:56Z
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2010-03-26T11:59:08Z
------- a.d ------------------- enum FooA { fooA }; void bar(FooA x) {} ------- test.d ---------------- import a; alias a.bar bar; mixin(` enum FooB { fooB }; void bar(FooB x) {} `); void test() { bar(FooA.fooA); bar(FooB.fooB); //error } ------------------------------
Comment #1 by bugzilla — 2010-03-26T12:00:55Z
changeset 420
Comment #2 by clugdbug — 2010-04-09T19:18:24Z
Fixed DMD1.058 and DMD2.043.