[Mono-bugs] [Bug 73993][Nor] New - [GMCS] generic type causes resolution failure on "where" section

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Mar 2005 23:40:52 -0500 (EST)


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@ximian.com.

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

--- shadow/73993	2005-03-22 23:40:52.000000000 -0500
+++ shadow/73993.tmp.17878	2005-03-22 23:40:52.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 73993
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] generic type causes resolution failure on "where" section
+
+When generic type was specified for "where" section, gmcs cannot resolve
+the type name.
+
+Steps to reproduce the problem:
+Compile the example below.
+
+using System;
+static class Test1 {
+  public class IOp<T> { }
+  static void Foo<T,OP>(uint v) where OP : IOp<T> { }
+};
+
+Actual Results:
+generic.cs(4) error CS0246: Cannot find type 'T'
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+no CS0246 error.
+
+How often does this happen? 
+consistently.