fe777c5c82
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
24 lines
229 B
C#
24 lines
229 B
C#
abstract class A
|
|
{
|
|
public virtual void M (params B[] b)
|
|
{
|
|
}
|
|
}
|
|
|
|
class B : A
|
|
{
|
|
public override void M (B[] b2)
|
|
{
|
|
}
|
|
}
|
|
|
|
class Test2
|
|
{
|
|
public static void Main()
|
|
{
|
|
B b = new B();
|
|
A a = b;
|
|
a.M (b, b);
|
|
b.M (b, b, b);
|
|
}
|
|
} |