Bug 327197

Summary: inheritance of generics function from other class isn't counted as interface implementation
Product: [Mono] Mono: Compilers Reporter: Jan Oravec <jan.oravec>
Component: C#Assignee: Mono Bugs <mono-bugs>
Status: RESOLVED DUPLICATE QA Contact: Mono Bugs <mono-bugs>
Severity: Normal    
Priority: P5 - None    
Version: 1.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: Third Party Developer/Partner Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jan Oravec 2007-09-21 16:10:44 UTC
Compiling this code:

interface I
{
  void Foo<T> (T foo);
}

class C1
{
  public void Foo<T> (T foo)
  {
  }
}

class C2 : C1, I
{
}

Returns this error:

qqq.cs(13,7): error CS0535: `C2' does not implement interface member `I.Foo<T>(T)'
qqq.cs(3,8): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

Changing "T foo" to "int foo" in both locations yields in compilable code.

Simmilar pattern is used in db4o 6.4 and this bug prevents its compilation with Mono.
Comment 2 Jan Oravec 2008-02-06 08:43:03 UTC

*** This bug has been marked as a duplicate of bug 325372 ***