September 23, 2007 [Issue 1527] New: mixin hides previous defined template | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1527 Summary: mixin hides previous defined template Product: D Version: unspecified Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: davidl@126.com 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); } -- |
September 23, 2007 [Issue 1527] mixin hides previous defined template | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1527 davidl@126.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE ------- Comment #1 from davidl@126.com 2007-09-23 03:27 ------- Ah, I realize I reported a smiliar bug. *** This bug has been marked as a duplicate of 1225 *** -- |
Copyright © 1999-2021 by the D Language Foundation