[Issue 571] New: class instance member template returns strange value

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Nov 25 05:47:41 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-11-19:
> http://d.puremagic.com/issues/show_bug.cgi?id=571

> class Test{
>   template test(){
>     const int test=1;
>   }
> }
>
> void main(){
>   assert(Test.test!()==1);//ok
>   assert((new Test).test!()==1);//failed
> }

Added to DStress as
http://dstress.kuehne.cn/run/t/template_47_A.d
http://dstress.kuehne.cn/run/t/template_47_B.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFaEqHLK5blCcjpWoRAgCJAJ9dZUpUeaSP0QBXBufU/RlYeYqjAwCglpP4
IY/UQZYAOBYmlU3lVwDvuCE=
=pw18
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list