Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing the samemixin template results in isn't a template error instead of the expected conflicts with alias error #19322

Open
dlangBugzillaToGithub opened this issue Sep 26, 2017 · 0 comments
Labels
Arch:x86_64 Issues specific to x86_64 P3 Severity:minor

Comments

@dlangBugzillaToGithub
Copy link

or reported this on 2017-09-26T13:07:03Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=17859

Description

a.d:
-----------------
module a;

mixin template A(T) {
	struct A {
		T t;
	}
}

struct X {
	int a;
}
-----------------

b.d: 
-----------------
module b;
import a: A;
import a: A;
mixin A!int;

import a: X;
import a: X;
X x;
-----------------

running `dmd -o- a.d b.d`:
                                                                                                                                                      
b.d(4): Error: mixin b.A!int A isn't a template
b.d(7): Error: alias b.X conflicts with alias b.X at b.d(6)

I would expect the error for `A` will be the same error I get on `X`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch:x86_64 Issues specific to x86_64 P3 Severity:minor
Projects
None yet
Development

No branches or pull requests

1 participant