[Mono-list] bug found! :-)

Gaurav Vaish gvaish@adobe.com
Tue, 26 Aug 2003 10:19:46 +0530


> uint u = 3;
> int i = 4;
> int o = i/u; << error
> 
> Mono gives the error: cannot convert from int to long.
> But there is no long here, just an uint (32 bits).

    I guess, the error should have been:
            "Cannot convert long to int"

    This is not a bug. Try this on csc, and you'll end up with:

    error CS0029: Cannot implicitly convert type 'long' to 'int'

    Rohit is absolutely correct.


Cheers,
Gaurav
http://gvaish.virtualave.net
--------------------------------


> 
> 
> mono 0.26 redhat rpms.
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>