--- /dev/null
+// cs0231-3.cs: A params parameter must be the last parameter in a formal parameter list
+// Line: 5
+class Test
+{
+ void Foo (int i, params object[] o, bool b) {}
+}
+
--- /dev/null
+// cs0231-4.cs: A params parameter must be the last parameter in a formal parameter list
+// Line: 5
+class Test
+{
+ void Foo (int i, params object[] o, params bool[] b) {}
+}
+
+2006-05-29 Raja R Harinath <rharinath@novell.com>
+
+ Fix cs0231-[34].cs.
+ * cs-parser.jay (formal_parameter_list): Extend the pattern below
+ to param arguments too.
+
2006-05-26 Miguel de Icaza <miguel@novell.com>
* cs-parser.jay: Catch another parsing form for arglist being
Report.Error (231, ((Parameter) $1).Location, "A params parameter must be the last parameter in a formal parameter list");
$$ = null;
}
+ | fixed_parameters COMMA parameter_array COMMA error
+ {
+ if ($3 != null)
+ Report.Error (231, ((Parameter) $3).Location, "A params parameter must be the last parameter in a formal parameter list");
+ $$ = null;
+ }
| ARGLIST COMMA error
{
Report.Error (257, (Location) $1, "An __arglist parameter must be the last parameter in a formal parameter list");
+2006-05-29 Raja R Harinath <rharinath@novell.com>
+
+ Fix cs0231-[34].cs.
+ * cs-parser.jay (formal_parameter_list): Extend the pattern below
+ to param arguments too.
+
2006-05-26 Miguel de Icaza <miguel@novell.com>
* cs-parser.jay: Catch another parsing form for arglist being
Report.Error (231, ((Parameter) $1).Location, "A params parameter must be the last parameter in a formal parameter list");
$$ = null;
}
+ | fixed_parameters COMMA parameter_array COMMA error
+ {
+ if ($3 != null)
+ Report.Error (231, ((Parameter) $3).Location, "A params parameter must be the last parameter in a formal parameter list");
+ $$ = null;
+ }
| ARGLIST COMMA error
{
Report.Error (257, (Location) $1, "An __arglist parameter must be the last parameter in a formal parameter list");