* expression.cs: cope with ParamArray for no args
* mb-parser.jay: dump parsing exception with --stacktrace
svn path=/trunk/mcs/; revision=33595
+2004-09-08 Bernie Solomon <bernard@ugsolutions.com>
+ * expression.cs: cope with ParamArray for no args
+ * mb-parser.jay: dump parsing exception with --stacktrace
+
2004/08/19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>\r
* mb-parser.jay : some changes just not to stumble in global attributes definitions in multiple-lines
like we have in VS.NET generated AssemblyInfo.vb files. still need to really process that definitions like mcs does
newarglist.Add (a);
}
+ if (HasArrayParameter (pd) && arg_count == pd.Count - 1)
+ return newarglist;
+
for (int i = arg_count; i < pd.Count; i++) {
Expression e = pd.DefaultValue (i);
Argument a = new Argument (e, Argument.AType.Expression);
Report.Error(e.code, e.loc, e.Message);
}
catch (Exception e) {
+ if (Report.Stacktrace)
+ Console.WriteLine(e);
Report.Error (29999, lexer.Location, "Parsing error");
}