[Mono-bugs] [Bug 72635][Nor] New - gmcs: problem with type resolving when generic multi-level inheritance

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 16 Feb 2005 03:49:48 -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 tsureshkumar@novell.com.

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

--- shadow/72635	2005-02-16 03:49:48.000000000 -0500
+++ shadow/72635.tmp.5386	2005-02-16 03:49:48.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 72635
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tsureshkumar@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: gmcs: problem with type resolving when generic multi-level inheritance
+
+Description of Problem:
+gmcs seems not recognizing types like z<k,v> in place of t as in case a <t>
+ (i.e. a <z<k,v>>. x()) in specific scenario as below. 
+
+Steps to reproduce the problem:
+compile this snippet as gmcs -t:library test.cs
+// <snip>
+interface a <t> { void x (); }
+
+interface b <t> : a <t> {}
+
+class kv <k,v> {} // type t
+
+interface c <k,v>: b <kv<k,v>>,  // b <t>
+                   a <kv<k,v>>    // a <t>
+{}
+
+class m <k,v> : c <k,v>,
+                b <kv<k,v>> // b <t>
+{
+        void a <kv <k,v>>.x () {} // a<t>.x ()
+}
+// </snip>
+
+Actual Results:
+error CS0535: 'm`2' does not implement interface member 'a`1.x()'
+
+Expected Results:
+Compilation succeeded.
+
+How often does this happen? 
+always
+
+Additional Information:
+this works with csc. my gmcs version 1.1.3.0 built from svn head.
+
+suresh.