--- /dev/null
+// CS1056: Unexpected character `$'
+// Line: 8
+
+public class C
+{
+ void Update ()
+ {
+ int a = $7;
+ }
+}
--- /dev/null
+// CS1525: Unexpected symbol `foreach', expecting `identifier'
+// Line: 11
+
+public partial class Log
+{
+ void Update (object[] h)
+ {
+ if (h == null)
+ return;
+
+ logstore.
+ foreach (var rev in h) {
+ }
+ }
+}
| checked_expression
| unchecked_expression
| pointer_member_access
- | anonymous_method_expression
+ | anonymous_method_expression
;
primary_expression_or_type
current_block.AddStatement ((Statement) $1);
}
| labeled_statement
+ | error
+ {
+ Error_SyntaxError (yyToken);
+ $$ = null;
+ }
;
//
$$ = new StatementExpression (s);
}
- | error
- {
- Error_SyntaxError (yyToken);
- $$ = null;
- }
;
interactive_statement_expression
return consume_identifier (c);
}
- error_details = ((char)c).ToString ();
- return Token.ERROR;
+ Report.Error (1056, Location, "Unexpected character `{0}'", ((char) c).ToString ());
}
if (CompleteOnEOF){