* ecore.cs (Expression.ConvertExplicit): One codepath could return
errors but not flag them. Fix this. Fixes #31853
svn path=/trunk/mcs/; revision=8080
2002-10-08 Miguel de Icaza <miguel@ximian.com>
+ * ecore.cs (Expression.ConvertExplicit): One codepath could return
+ errors but not flag them. Fix this. Fixes #31853
+
* parameter.cs (Resolve): Do not allow void as a parameter type.
2002-10-06 Martin Baulig <martin@gnome.org>
if (t != null)
return t;
- return ConvertNumericExplicit (ec, e, target_type, loc);
+ t = ConvertNumericExplicit (ec, e, target_type, loc);
+ if (t != null)
+ return t;
+
+ Error_CannotConvertType (loc, expr_type, target_type);
+ return null;
}
ne = ConvertReferenceExplicit (expr, target_type);