* cs-parser.jay: Added CS0230 error report.
svn path=/trunk/mcs/; revision=33678
+2004-09-09 Marek Safar <marek.safar@seznam.cz>
+
+ * cs-parser.jay: Added CS0230 error report.
+
2004-09-09 Marek Safar <marek.safar@seznam.cz>
* cs-parser.jay: Added errors CS0231 and CS0257 report.
;
foreach_statement
- : FOREACH OPEN_PARENS type IDENTIFIER IN
+ : FOREACH OPEN_PARENS type IN expression CLOSE_PARENS
+ {
+ Report.Error (230, lexer.Location, "Type and identifier are both required in a foreach statement");
+ $$ = null;
+ }
+ | FOREACH OPEN_PARENS type IDENTIFIER IN
{
oob_stack.Push (lexer.Location);
}