Bug 1527 – mixin hides previous defined template

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-09-22T21:37:00Z
Last change time
2015-06-09T05:15:12Z
Assigned to
bugzilla
Creator
davidl

Comments

Comment #0 by davidl — 2007-09-22T21:37:42Z
int[char] v; char m; int d; template toString (U,C,T:U[C]) { char[] toString(U m,C c, T t) { return ""; } } char[] toString()(int k){return "";} void main() { mixin toString!(int,char,int[char]); // without mixin statement, // toString(3); compiles ok. toString!(int,char,int[char])(d,m,v); toString(3); }
Comment #1 by davidl — 2007-09-23T03:27:30Z
Ah, I realize I reported a smiliar bug. *** This bug has been marked as a duplicate of 1225 ***