Files
mono/mcs/errors/cs1677.cs
T
Marek Safar 0b5d7d4615 2006-03-18 Marek Safar <[email protected]>
A fix for #77816.

	* anonymous.cs.cs (AnonymousMethod): Add host to allow access to 
	host container.
	(AnonymousMethod.ImplicitStandardConversionExists): New method.
	(AnonymousMethod.Compatible): Moved parameter resolving to DoResolve.
	Add more error reporting; Fixed issue with params.

	* convert.cs (ImplicitStandardConversionExists): Returned conversion check.

	* cs-parser.jay: AnonymousMethod requires host container.

	* delegate.cs (NewDelegate.DoResolve): Updated after Compatible changes.

svn path=/trunk/mcs/; revision=58142
2006-03-18 15:25:20 +00:00

12 lines
196 B
C#

// cs1677.cs: Parameter `1' should not be declared with the `ref' keyword
// Line: 9
delegate void D (int x);
class X {
static void Main ()
{
D d2 = delegate (ref int x) {};
}
}