2005-01-26 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / mbas / assign.cs
index 76deb1fdde98bc73907d65ef0151def06bfce667..a493a74467e0aa5410287484f0c2ce06707bb89b 100644 (file)
@@ -305,7 +305,7 @@ namespace Mono.MonoBASIC {
                        }
 
                        if (target.eclass != ExprClass.Variable && target.eclass != ExprClass.EventAccess){
-                               Report.Error (131, loc,
+                               Report.Error (30074, loc,
                                              "Left hand of an assignment must be a variable, " +
                                              "a property or an indexer");
                                return null;
@@ -338,7 +338,7 @@ namespace Mono.MonoBASIC {
                                        //    target_type
                                        //
                                        
-                                       source = ConvertExplicit (ec, source, target_type, loc);
+                                       source = ConvertExplicit (ec, source, target_type, false, loc);
                                        if (source == null){
                                                Error_CannotConvertImplicit (loc, source_type, target_type);
                                                return null;