Handle another case of binding to first arg of static method.
commitbcdbd24355554f16e0a0bf86f7624ad731b46ade
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 23 Nov 2010 20:52:13 +0000 (23 18:52 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 23 Nov 2010 20:52:13 +0000 (23 18:52 -0200)
treed0611a1f2ae6ab8d3edca8279b6f7d86cc5bddf6
parenta2be3fa309132662c2a7a29a5fd58f0942d82a3b
Handle another case of binding to first arg of static method.

* Delegate.cs (CreateDelegate): Fix visibility and make
sure that we fail to bind to first argument of static
arguments to overloads that don't pass it.

* DelegateTest.cs: Add tests for the previous change.

Fixes #655439
mcs/class/corlib/System/Delegate.cs
mcs/class/corlib/Test/System/DelegateTest.cs