D1: Overloading across modules
Nick Sabalausky
a at a.a
Tue Mar 23 02:43:26 PDT 2010
In D1, is there any reason I should be getting an error on this?:
// module A:
enum FooA { fooA };
void bar(FooA x) {}
// module B:
import A;
enum FooB { fooB };
void bar(FooB x) {}
bar(FooB.fooB); // Error: A.bar conflicts with B.bar
Is overloading across modules not allowed? Is overloading on two different
enum types not allowed? Is it a DMD bug? Or does this all work fine and I
probably just have some other problem elsewhere?
More information about the Digitalmars-d-learn
mailing list