4011 – Incorrect function overloading using mixins

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4011 - Incorrect function overloading using mixins
Summary: Incorrect function overloading using mixins
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
Reported: 2010年03月26日 11:59 UTC by Walter Bright
Modified: 2015年06月09日 05:14 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2010年03月26日 11:59:08 UTC
------- 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 Walter Bright 2010年03月26日 12:00:55 UTC
changeset 420
Comment 2 Don 2010年04月09日 19:18:24 UTC
Fixed DMD1.058 and DMD2.043.


AltStyle によって変換されたページ (->オリジナル) /