-// cs1501: no match for this argument list
-// Line: 11
-class X {
+// CS1501: No overload for method `Foo' takes `0' arguments
+// Line: 20
- X (int a)
+class A
+{
+ protected virtual void Foo (object[] arr)
{
}
-
- static void Main ()
+}
+
+class B : A
+{
+ protected override void Foo (params object[] arr)
+ {
+ }
+
+ static void Bar()
{
- new X ();
+ B b = new B ();
+ b.Foo ();
}
}
-