[Issue 213] New: template X is not a member of Y
Thomas Kuehne
thomas-dloop at kuehne.cn
Fri Jul 7 10:06:42 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-06-20:
> http://d.puremagic.com/issues/show_bug.cgi?id=213
> template Foo() {
> template blah() {
> alias x blah;
> }
> static int x;
> }
>
> struct Bar {
> mixin Foo mix;
> }
>
> void main() {
> typeof(Bar.blah!()) a; // error
> typeof(Bar.x) b; // ok
> }
>
>
>
> compile error:
> --------------
>
> tmp8.d(13): template blah!() is not a member of Bar
Added to DStress as
http://dstress.kuehne.cn/run/t/template_40_A.d
http://dstress.kuehne.cn/run/t/template_40_B.d
http://dstress.kuehne.cn/run/t/template_40_C.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFErlIaLK5blCcjpWoRAsAlAKCCQNsslVr02PmTq+qrVok4cBUq6gCcCKOe
pTW1OmVMUVIyR6etOh8zqUc=
=hzHA
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list