[Bug 157] New: "Unexpected FunExp type" error on function literals
Thomas Kuehne
thomas-dloop at kuehne.cn
Sun May 28 07:39:45 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-05-27:
> Summary: "Unexpected FunExp type" error on function literals
> The following code fails with the error message:
>
> int function(int)[1] table;
>
> void main() {
> table[0] = function int(int x) { return x + 99; };
> assert(table[0](1) == 100);
> }
Added to DStress as
http://dstress.kuehne.cn/run/f/function_06_A.d
http://dstress.kuehne.cn/run/f/function_06_B.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEebYV3w+/yD4P9tIRAuO8AJ9bxIRBKfhZr2Q26IaGbDo9A96ORwCfYsi0
QsSIm4WgGYFfrLLYDArxtjU=
=agKO
-----END PGP SIGNATURE-----
More information about the D.gnu
mailing list