* assign.cs: Report the error, instead of failing silently
svn path=/trunk/mcs/; revision=4352
2002-05-06 Miguel de Icaza <miguel@ximian.com>
+ * assign.cs: Report the error, instead of failing silently
+
* rootcontext.cs (AddGlobalAttributes): Track attributes on the
typecontainer that they are declared, because the
typecontainer/namespace will have the list of using clauses that
/// </summary>
public class Assign : ExpressionStatement {
Expression target, source;
- Location l;
+ public Location l;
public Assign (Expression target, Expression source, Location l)
{
if (StandardConversionExists (a.original_source, target_type))
return this;
+ Error_CannotConvertImplicit (l, source_type, target_type);
return null;
}
}
public override bool Resolve (EmitContext ec)
{
expr = ResolveBoolean (ec, expr, loc);
- if (expr == null)
+ if (expr == null){
return false;
+ }
if (TrueStatement.Resolve (ec)){
if (FalseStatement != null){
if (FalseStatement.Resolve (ec))
return true;
+
return false;
}
return true;