[Mono-bugs] [Bug 81209][Nor] New - [gmcs] compilation failure.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Mar 22 02:35:59 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 miguel at ximian.com.
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: martin at ximian.com
+ReportedBy: miguel at ximian.com
+QAContact: mono-bugs at ximian.com
+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
More information about the mono-bugs
mailing list