[Issue 216] New: ridiculous error message
Thomas Kuehne
thomas-dloop at kuehne.cn
Sun Jul 2 21:07:21 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-06-22:
> http://d.puremagic.com/issues/show_bug.cgi?id=216
> 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
Added to DStress as
http://dstress.kuehne.cn/run/t/template_36_A.d
http://dstress.kuehne.cn/run/t/template_36_B.d
http://dstress.kuehne.cn/run/t/template_36_C.d
http://dstress.kuehne.cn/run/t/template_36_D.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEqARLLK5blCcjpWoRAvF8AJ4nQ24IuOZr0YvlKvA+znYymMNivACgoE/u
c76F01E2BIIYZ+WopksnIm0=
=eMUM
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list