[Issue 11847] Importing "package.d" module causes qualified name lookup to fail for sub modules
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 4 23:24:23 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11847
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2014-01-04 23:24:21 PST ---
(In reply to comment #0)
> The following errors out with "main.d(5): Error: undefined identifier 'mod'":
>
> main.d
> ---
> import test;
> import test.mod;
>
> void main() {
> test.mod.func();
> }
> ---
Currently this is by design. If you use fully qualified name that starts with
"test.", test/package.d is always preferred to avoid ambiguity.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list