[Mono-bugs] [Bug 76472][Nor] Changed - [GMCS] incorrect CS0309 / return type constraint does not consider generic method argument constraints of the method's base definition

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Oct 19 02:36:10 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76472

--- shadow/76472	2005-10-19 02:29:46.000000000 -0400
+++ shadow/76472.tmp.20769	2005-10-19 02:36:10.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 76472
 Product: Mono: Compilers
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: atsushi at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: [GMCS] incorrect CS0309 / return type constraint does not consider generic method argument constraints
+Summary: [GMCS] incorrect CS0309 / return type constraint does not consider generic method argument constraints of the method's base definition
 
 The example code below results in CS0309 error as if generic "where T :
 IBar" does not exist.
 
 interface IFoo {}
 interface IBar {}
@@ -47,6 +47,10 @@
 
 no CS0309 error.
 
 How often does this happen? 
 
 consistently.
+
+------- Additional Comments From atsushi at ximian.com  2005-10-19 02:36 -------
+As C2.Hoge<T>() compiles fine, it only happens when the method is
+overriden (and maybe has no constraints on generic arguments internally).


More information about the mono-bugs mailing list