Bugzilla – Bug 323891
[gmcs] compilation failure.
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by miguel@ximian.com 2007-03-22 01:35:58 MST ---- 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 ---- Additional Comments From martin@ximian.com 2007-03-26 19:10:51 MST ---- Fixed in SVN. Unknown operating system unknown. Setting to default OS "Other".