Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2005-02-21 17:51:17 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-02-21 17:51:17 +0300
commit24b9b36a28669cd30859b3a0d76bee4bb1d2bb7c (patch)
treedb4c3709df50daa9132f54fc1b2f7effb0c96851 /mcs/tests/test-351.cs
parentf2a1701169cc5bab0cb06b6cd0094dfc9fe6b92d (diff)
Fix #68955.
* mcs/expression.cs (Invocation.IsApplicable): Make public. (Invocation.IsParamsMethodApplicable): Likewise. * mcs/delegate.cs (Delegate.VerifyApplicability): Don't use Invocation.VerifyArgumentCompat for parameter applicability testing. Use Invocation.IsApplicable and Invocation.IsParamsMethodApplicable. * tests/test-351.cs: New test from #68955. svn path=/trunk/mcs/; revision=40996
Diffstat (limited to 'mcs/tests/test-351.cs')
-rw-r--r--mcs/tests/test-351.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/test-351.cs b/mcs/tests/test-351.cs
new file mode 100644
index 00000000000..3e7e4d820dc
--- /dev/null
+++ b/mcs/tests/test-351.cs
@@ -0,0 +1,16 @@
+namespace Test {
+ delegate void Foo (string x, params object [] args);
+ class Testee {
+ static void Bar (string x, params object [] args) {}
+ static void Main () {
+ Foo bar = new Foo (Bar);
+ bar ("Hello");
+ bar ("Hello", "world");
+ bar ("Hello", new string [] { "world" });
+ bar ("Hello", "world", "!!!");
+ bar ("i = ", 5);
+ bar ("x' = ", new object [] {"Foo", 5, 3.6 });
+ bar ("x'' = ", "Foo", 5, 3.6);
+ }
+ }
+}