Bug 318117 (MONO75093) - Strange Generic Bug while reporting inadequate delegate
Summary: Strange Generic Bug while reporting inadequate delegate
Status: RESOLVED MOVED
Alias: MONO75093
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-30 05:18 UTC by José Faria
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 19:19:13 UTC


---- Reported by spigaz@gmail.com 2005-05-29 22:18:56 MST ----

Description of Problem:

In a strange configuration the gmcs flags a wrong error.

Steps to reproduce the problem:
1. Insert into a file and compile into an assembly:
public class Generic<T>

{
	public void Add(Changed changed)

	{

	}

	public delegate void Changed(Generic<T> proxy, T value);

}

public class Class
{
	public Generic<bool> Property
	{
		get
		{
			return null;
		}
	}
}
2. Insert into another file and compile with the other assembly as reference:
public class Class2
{	
	public Class2(Class instance)
	{
		instance.Property.Add(new Generic<bool>.Changed(OnEvent));
	}
	protected void OnEvent(object changed)
	{
	}
}
3. 

Actual Results:
error CS0234: The type name `Changed' could not be found in type
`Generic`1<T><System.Boolean>'

Expected Results:
error CS0123: Method 'void Class2.OnEvent ( object)' does not match
delegate 'void Generic`1+Changed<System.Boolean> (Generic`1, bool)'

How often does this happen? 
Always

Additional Information:
Might be related to https://bugzilla.novell.com/show_bug.cgi?id=MONO75092



---- Additional Comments From martin@ximian.com 2005-06-10 12:48:23 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO75092 ***


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Gentoo 2.6.11</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"