[Mono-bugs] [Bug 75368][Cri] New - Interface with generic method and constraint does not compile

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 23 16:25:02 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 mailing at devspace.com.

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

--- shadow/75368	2005-06-23 16:25:02.000000000 -0400
+++ shadow/75368.tmp.14378	2005-06-23 16:25:02.000000000 -0400
@@ -0,0 +1,36 @@
+Bug#: 75368
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details: Same Bug Regardless of platform
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: C#
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mailing at devspace.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Interface with generic method and constraint does not compile
+
+Consider the following interface declaration,
+
+public interface BuggyInterface {
+    returntype SampleReturn< returntype>() where returntype: class;
+}
+
+The following error is generated.
+
+syntax error, got token `IDENTIFIER'
+/Users/cgross/Desktop/projects/Mono.Bugs/Class1.cs(6) error CS1041:
+Identifier expected
+/Users/cgross/Desktop/projects/Mono.Bugs/Class1.cs(6) error CS1041:
+Identifier expected
+/Users/cgross/Desktop/projects/Mono.Bugs/Class1.cs(6) error CS1041:
+Identifier expected
+
+This code compiles without problems on MS .NET SDK Beta 2.  The error lies
+with the constraint "where returntype: class;


More information about the mono-bugs mailing list