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 [EMAIL PROTECTED]

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

--- shadow/81209        2007-03-22 01:35:58.000000000 -0500
+++ shadow/81209.tmp.23104      2007-03-22 01:35:58.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 81209
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [gmcs] compilation failure.
+
+Am not sure how to explain this problem, I ran into this while working on a
+partner application, it builds with CSC, but fails with GMCS:
+
+public class MyBase<K, V>
+{
+    public delegate void Callback(K key, V value);
+    
+    public MyBase(Callback insertionCallback)
+    {
+    }
+}
+
+public class X : MyBase<string, int>
+{
+    public X(Callback cb)
+       : base (cb)
+    {
+    }
+}
+
+Like this:
+
+demo.cs(14,11): error CS1502: The best overloaded method match for
+`MyBase<string,int>.MyBase`2(MyBase<string,int>.Callback)' has some invalid
+arguments
+demo.cs(14,11): error CS1503: Argument 1: Cannot convert from
+`MyBase<K,V>.Callback' to `MyBase<string,int>.Callback'
+Compilation failed: 2 error(s), 0 warnings
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to