Bug 317082 (MONO72131) - [GMCS]: Inheritance whith generic interfaces
Summary: [GMCS]: Inheritance whith generic interfaces
Status: RESOLVED FIXED
Alias: MONO72131
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 19:28 UTC by Clemens Koppensteiner
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:06:09 UTC


---- Reported by cl.koppensteiner@kabsi.at 2005-02-02 12:28:05 MST ----

Following code produces the error "CS0117: `T' does not contain a
definition for `DoSomeThing'" on a current 1.1.4 snapshot.

public interface IBase
{
	void DoSomeThing();
}

public interface IExtended : IBase
{
	void DoSomeThingElse();
}

public class MyClass<T> where T: IExtended, new()
{
	public MyClass()
	{
		T instance = new T();
		instance.DoSomeThing();
	}
}



---- Additional Comments From martin@ximian.com 2005-04-29 11:56:43 MST ----

Fixed in SVN.


Unknown operating system unknown. Setting to default OS "Other".