[Issue 240] New: No file or line information in error message "cannot implicitly convert expression (-1) of type ulong to double"

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Jul 6 14:10:58 PDT 2006


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

d-bugmail at puremagic.com schrieb am 2006-07-05:
> http://d.puremagic.com/issues/show_bug.cgi?id=240

> The error message from compiling the following code does not give any file or
> line information. In large projects, not having the file and line information
> makes finding the error difficult.
>
> Code:
> void main() {
>         double maxValue = ulong.max;
> }
>
> Command:
> dmd tmp.d
>
> Output:
> cannot implicitly convert expression (-1) of type ulong to double

Can anybody reproduce this issue? DMD-0.162 on Linux behaved as expected
and didn't produce any error messages.

Thomas


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

iD8DBQFErXwYLK5blCcjpWoRAqxxAJ9L+SbfQab1WCDfwa37uFwCTK4kRwCfV7ef
HKo8pC4pxGLvU+o4GFlgOfw=
=c0JV
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list