[Mono-bugs] [Bug 623260] New: boxing issue with abstract class from interface
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jul 18 00:49:28 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=623260
http://bugzilla.novell.com/show_bug.cgi?id=623260#c0
Summary: boxing issue with abstract class from interface
Classification: Mono
Product: Mono: Runtime
Version: 2.6.x
Platform: x86
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: generics
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: koruptid at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=376619)
--> (http://bugzilla.novell.com/attachment.cgi?id=376619)
Example Project
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6)
Gecko/20100625 Firefox/3.6.6
If a class inherits from an abstract class that is inherited from an interface
the boxing of the base interface is lost when trying to call a generic function
from within the overridden generic function derived from the interface.
Demonstration attached. This code compiles, runs, and gives correct result on
VS 2010.
Reproducible: Always
Actual Results:
/Main.cs(77,32): Error CS0314: The type 'T' cannot be used as a type parameter
'T' in the generic type or method 'GenericsError.ConcreteTest.Child<T,U>()'.
There is no boxing or type parameter conversion from 'T' to
GenericsError.ITType<U>'
Expected Results:
Hello World!
Press any key to continue...
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list