Author: marek
Date: 2007-10-08 10:31:12 -0400 (Mon, 08 Oct 2007)
New Revision: 87096
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/expression.cs
Log:
2007-10-08 Marek Safar <[EMAIL PROTECTED]>
* expresison.cs (UnaryMutator.ResolveOperator): Print more useful error
message.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-10-08 14:04:14 UTC (rev 87095)
+++ trunk/mcs/mcs/ChangeLog 2007-10-08 14:31:12 UTC (rev 87096)
@@ -1,5 +1,10 @@
2007-10-08 Marek Safar <[EMAIL PROTECTED]>
+ * expresison.cs (UnaryMutator.ResolveOperator): Print more useful error
+ message.
+
+2007-10-08 Marek Safar <[EMAIL PROTECTED]>
+
* attribute.cs (GetString, GetBoolean): Work with both literal and
constant.
Modified: trunk/mcs/mcs/expression.cs
===================================================================
--- trunk/mcs/mcs/expression.cs 2007-10-08 14:04:14 UTC (rev 87095)
+++ trunk/mcs/mcs/expression.cs 2007-10-08 14:31:12 UTC (rev 87096)
@@ -891,11 +891,7 @@
if (expr == null)
return null;
} else {
- if (expr.eclass == ExprClass.Value) {
- Error_ValueAssignment (loc);
- } else {
- expr.Error_UnexpectedKind
(ec.DeclContainer, "variable, indexer or property access", loc);
- }
+ Report.Error (1059, loc, "The operand of an
increment or decrement operator must be a variable, property or indexer");
return null;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches