September 22, 2005 alias/typedef and in/out/body | ||||
---|---|---|---|---|
| ||||
Attachments: | 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 |
Copyright © 1999-2021 by the D Language Foundation