digitalmars.D.bugs - alias/typedef and in/out/body
- =?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= (25/25) Sep 22 2005 -----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The code below fails to compile whereas the same code without the alias
doesn't.
alias int intX;
int main(){
intX test(int iX)
body {
return i + 1;
}
assert(test(1)==2);
return 0;
}
http://dstress.kuehne.cn/run/i/in_out_body_09_A.d
http://dstress.kuehne.cn/run/i/in_out_body_09_B.d
http://dstress.kuehne.cn/run/i/in_out_body_09_C.d
http://dstress.kuehne.cn/run/i/in_out_body_09_D.d
http://dstress.kuehne.cn/run/i/in_out_body_09_E.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFDMs693w+/yD4P9tIRAprEAJ0Z5qwmKd6vLqzgVvLGos/FHoAVIgCgp3m9
FNVdncqBuT/8EHqlDQOrsdw=
=k9bi
-----END PGP SIGNATURE-----
Sep 22 2005








=?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= <thomas-dloop kuehne.cn>