The code below compiles:
// console_main.d
alias uint DataKey;
struct Output {
template mix()
{
template writei() {
void writei(DataKey k) {}
}
void write(DataKey k) {
writei!()(k);
}
}
}
class Kernel {
// this() {}
}
class Foo : Kernel {
mixin Output.mix mixer;
}
void main() {
}
// ----
Now, try uncommenting the ctor in the Kernel class.
Result:
console_main.d(8): identifier 'DataKey' is not defined
Comment #1 by wbaxter — 2006-12-17T02:30:54Z
maybe I shouldn't have taken it upon myself to do this, but it doesn't seem like a bad error message really warrants a category "major". "Minor" would be more like it, but I'll settle for "normal".
Comment #2 by braddr — 2007-09-17T00:42:32Z
This bug is no longer visible with dmd versions 1.021 or 2.004.
Thomas, can you confirm that it's ok to close?