Bug 323891 (MONO81209) - [gmcs] compilation failure.
Summary: [gmcs] compilation failure.
Status: RESOLVED FIXED
Alias: MONO81209
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-22 08:35 UTC by Miguel de Icaza
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:33:22 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".