D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2401 - [module] type definition conflicts with itself imported through different module
Summary: [module] type definition conflicts with itself imported through different module
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2008-10-08 14:49 UTC by Koroskin Denis
Modified: 2015-06-09 01:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Koroskin Denis 2008-10-08 14:49:57 UTC
module m1;
alias int Foo;

module m2;
import m1 : Foo;

module m;
import m1;
import m2;

Foo bar = 42;

m.d(5): Error: m1.Foo at m1.d(3) conflicts with m2.Foo at m2.d(2)
Comment 1 Kenji Hara 2012-06-07 05:48:51 UTC
Works in 2.060head.

This bug is fixed by the commit:
https://github.com/D-Programming-Language/dmd/commit/2a3db5d7afd0c26e8a0ec58ff6fb6a8cd9647de6