mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
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
12 lines
196 B
C#
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) {};
|
|
}
|
|
}
|