if (source == null)
return null;
- return new UserCast (method, source, loc);
+ return new UserCast (method, source, loc).DoResolve (ec);
}
/// <summary>
}
if (expr_type == TypeManager.null_type && target_type.IsPointer)
- return EmptyCast.Create (NullPointer.Null, target_type);
+ return EmptyCast.Create (new NullPointer (loc), target_type);
}
if (expr_type == TypeManager.anonymous_method_type){