svn path=/trunk/mcs/; revision=47026
+2005-07-07 Manjula GHM <mmanjula@novell.com>
+ * mb-parser.jay: To avoid Array modifiers specified on both a variable and its type
+
2005-07-06 Umadevi S <sumadevi@novell.com>
* statement.cs - suppressing warnings due to unused variables in mbas compiler.
ArrayList VarDeclarations = new ArrayList();
Expression vartype;
ArrayList a_dims = null;
+ Expression exp;
if ((names.Count > 1) && (varinit != null))
Report.Error (
current_rank_specifiers = (ArrayList) vname.Rank;
a_dims = null;
varinit = $4;
+ exp = (Expression)$3;
+
+
+ if (VariableDeclaration.IsArrayDecl (this) && (exp is MemberAccess))
+ Report.Error (
+ 31087, (Location)$1,
+ "Array modifiers can not specified on both a variable and its type" );
+
if(vname.Type != null && $3 != null)
Report.Error (