Bug 320754 (MONO78006) - [GMCS] Partial derived generic class fails to compile
Summary: [GMCS] Partial derived generic class fails to compile
Status: RESOLVED FIXED
Alias: MONO78006
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-04 07:08 UTC by Yi-an Huang
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:53:59 UTC


---- Reported by yianwillis@gmail.com 2006-04-04 00:08:28 MST ----

Description of Problem:
gmcs with mono 1.1.13.4. When a generic class is a drived class of another
generic class using the same generic type and the derived class itself is
partial, an error CS0246 is reported while it should not.

Steps to reproduce the problem:

public class Base<T> {
    public virtual void func() {}
}
    
public partial class Derived<T>: Base<T> {
    public override void func() {}
}

Actual Results:
test.cs(5,39): error CS0246: The type or namespace name `T' could not be
found. Are you missing a using directive or an assembly reference?

Expected Results:
no error.

How often does this happen? 
Always

Additional Information:
When either the partial keyword is removed or the base class is not
generic, no error occurs.



---- Additional Comments From martin@ximian.com 2006-06-16 14:54:24 MST ----

Cleaning up old bugs, works for me.