- if (base_method == curr) {
- //
- // Both mcs and CSC 1.1 seem to emit a somewhat broken
- // ...Invoke () function for delegates: it's missing a 'newslot'.
- // CSC 2.0 emits a 'newslot' for a delegate's Invoke.
- //
- // Also, CSC 1.1 appears to emit 'Finalize' without a newslot.
- //
- if ((member.Name != "Invoke" ||
- !type.IsSubclassOf (TypeManager.multicast_delegate_type)) &&
- (member.Name != "Finalize" ||
- type != TypeManager.object_type)) {
- Report.SymbolRelatedToPreviousError (base_method);
- Report.Warning (-28,
- "The method '{0}' is marked 'override'," +
- " but doesn't appear to override any virtual or abstract method:" +
- " it may be ignored during overload resolution",
- TypeManager.CSharpSignature (base_method));
- }
-