diff options
author | Marek Safar <marek.safar@gmail.com> | 2006-03-18 18:25:20 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2006-03-18 18:25:20 +0300 |
commit | 0b5d7d461524d574fe60014ac2ea072605f873c9 (patch) | |
tree | 02d227b598738670ef44291b6445dd69577621c0 /mcs/tests/test-anon-11.cs | |
parent | 317e3d74aaaaba319042b94f2812764f78c3ad18 (diff) |
2006-03-18 Marek Safar <marek.safar@seznam.cz>
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
Diffstat (limited to 'mcs/tests/test-anon-11.cs')
-rw-r--r-- | mcs/tests/test-anon-11.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/tests/test-anon-11.cs b/mcs/tests/test-anon-11.cs index f63b9231f64..255b0f1b704 100644 --- a/mcs/tests/test-anon-11.cs +++ b/mcs/tests/test-anon-11.cs @@ -4,6 +4,8 @@ delegate void D (int x); delegate void E (out int x); +delegate void F (params int[] x); + class X { static int Main () { @@ -11,6 +13,9 @@ class X { D d1 = delegate {}; D d2 = delegate (int a) {}; + F f1 = delegate {}; + F f2 = delegate (int[] a) {}; + return 0; } } |