[Mono-list] Bug in mcs: casting type enum to integral type

Miguel de Icaza miguel@ximian.com
26 Feb 2002 19:11:24 -0500

> 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.

Very good catch.  I have fixed this now on my local copy.