[Issue 6476] New: inner template mixin not defined?!
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 11 20:21:53 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6476
Summary: inner template mixin not defined?!
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ellery-newcomer at utulsa.edu
--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2011-08-11 20:21:51 PDT ---
the code:
struct Sequenced(){
struct Inner(){
static exposeType(){
Inner i;
return i;
}
mixin template NodeMixin(){
size_t i;
}
}
}
struct IndexedBy(L...)
{
alias L List;
}
struct MNode(ThisContainer, IndexedBy, Signals, Value){
mixin Sequenced!().Inner!().NodeMixin!() ZZ; // ok
alias Sequenced!() Y0;
alias typeof(Y0.Inner!().exposeType()) Z0;
pragma(msg, Z0);
mixin Z0.NodeMixin!() Z2;
}
class MIC(Value, Args...){
alias MNode!(typeof(this), Args[0],int,Value) ThisNode;
}
void main(){
alias MIC!(int,
IndexedBy!(Sequenced!(),
),
) C;
}
the fireworks:
error13.d(30): Error: mixin
error13.MNode!(MIC,IndexedBy!(Sequenced!()),int,int).MNode.NodeMixin!() is not
defined
error13.d(34): Error: template instance
error13.MNode!(MIC,IndexedBy!(Sequenced!()),int,int) error instantiating
error13.d(38): instantiated from here:
MIC!(int,IndexedBy!(Sequenced!()))
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list