[Mono-list] mcs won't allow implementation of interfaces withstatic methods

Paolo Molaro lupus@ximian.com
Fri, 16 Aug 2002 15:42:11 +0200

On 08/16/02 Serge wrote:
> > C# code won't be able to call them, so it should just ignore their
> > existance.
> It seems that at present, it's possible to _call_ those methods (without implementing interface).
> But, MCS generates correct code, while CSC produces wrong binary
> (something like 'pop' instead of a 'call') without reporting any errors.

Yeah, but since C# doesn't allow static members in interfaces, mcs
should ignore them. It's nice that it gets the code right, but it should
not allow the call in the first place, IMHO.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better