Bug 17859 – importing the same`mixin template` results in `isn't a template` error instead of the expected `conflicts with alias` error

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2017-09-26T13:07:03Z
Last change time
2024-12-13T18:54:41Z
Keywords
industry
Assigned to
No Owner
Creator
or
Moved to GitHub: dmd#19322 →

Comments

Comment #0 by or — 2017-09-26T13:07:03Z
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`
Comment #1 by robert.schadek — 2024-12-13T18:54:41Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19322 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB