[Mono-list] Bug in mcs: casting type enum to integral type
Ravi Pratap M
ravi@ximian.com
26 Feb 2002 11:54:02 -0600
Hey Paolo,
On Tue, 2002-02-26 at 08:02, Paolo Molaro wrote:
> Yes, probably some convert stuff missing.
> But there is also a bug in the compiler. ecore.cs, about line 1800:
>
> e = ConvertImplicit (ec, e, target_type, loc);
> if (e != null)
> return e;
>
> return ConvertNumericExplicit (ec, e, target_type);
>
> If ConvertImplicit() returns null, e is passed to ConvertNumericExplicit(),
> but that method expects e to be non-null.
I don't quite see what the problem is - I thought Miguel just reported
that this was fine, no ?
Regards,
Ravi
--
"If you're smart, you'll be humble. There always is somebody
who hasn't read a book and knows twice as much as you do."
-- David Duchovny in Readers' Digest
Ravi Pratap M <ravi@ximian.com>
<http://primates.ximian.com/~ravi>