[Bug 24] New: Arithmetic operators are allowed on boolean expressions

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Mar 8 06:12:31 PST 2006


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

d-bugmail at puremagic.com schrieb am 2006-03-08:
> The operators 
>
>  + - / * 
>
> should cause a compilation error if one of the expressions is a boolean
> datatype. 

Added to DStress as
http://dstress.kuehne.cn/nocompile/o/opMul_10_A.d
http://dstress.kuehne.cn/nocompile/o/opMulAssign_20_A.d
http://dstress.kuehne.cn/nocompile/o/opDiv_15_A.d
http://dstress.kuehne.cn/nocompile/o/opDivAssign_20_A.d

(the others are tested by updated test cases)

Thomas


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

iD8DBQFEDvPN3w+/yD4P9tIRAsb2AJ97+A6r7xwaKS8N63VmtKrGk8JfkACeNouD
hL5xZMXAb7g/OuGkdIzlPOc=
=LhK2
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list