[Mono-bugs] [Bug 82809][Min] New - Type constraints in anonymous methods don't work sometimes

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 11 19:52:35 EDT 2007


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 julian.rueth at gmail.com.

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

--- shadow/82809	2007-09-11 19:52:35.000000000 -0400
+++ shadow/82809.tmp.4356	2007-09-11 19:52:35.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 82809
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: gentoo linux x86
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: julian.rueth at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Type constraints in anonymous methods don't work sometimes
+
+Description of Problem:
+compiler seems to forget type constraints in anonymous methods defined
+inside an overriden method.
+
+Steps to reproduce the problem:
+1. gmcs constraint.cs
+
+Actual Results:
+constraint.cs(10,34): error CS0453: The type `T' must be a non-nullable
+value type in order to use it as type parameter `T' in the generic type or
+method `B.Foo<T>()'.
+constraint.cs(10,21): error CS0029: Cannot implicitly convert type
+anonymous method to `B.Del'
+
+Expected Results:
+compiles with the MS compiler.
+
+Additional Information:
+compiler from svn (revision 85656).
+same with gmcs from gentoo ebuild (version 1.2.5.0).


More information about the mono-bugs mailing list