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:49:14 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-02-21 17:49:14 +0300
commitf2a1701169cc5bab0cb06b6cd0094dfc9fe6b92d (patch)
tree9a9c40bf50de6eda134268ebeb8d031514155f2c /mcs/errors/cs1594-1.cs
parentde3cd3c43682fc06091ce839eec07c5a6b06b763 (diff)
* cs1594-1.cs, cs1594-2.cs, cs1594-3.cs: New tests based on #68955.
(not regressions) svn path=/trunk/mcs/; revision=40995
Diffstat (limited to 'mcs/errors/cs1594-1.cs')
-rw-r--r--mcs/errors/cs1594-1.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs1594-1.cs b/mcs/errors/cs1594-1.cs
new file mode 100644
index 00000000000..3ab510c955a
--- /dev/null
+++ b/mcs/errors/cs1594-1.cs
@@ -0,0 +1,13 @@
+// cs1594.cs: Delegate 'Test.Foo' has some invalid arguments.
+// Line: 10
+
+namespace Test {
+ delegate void Foo (string x, params string [] args);
+ class Testee {
+ static void Bar (string x, params string [] args) {}
+ static void Main () {
+ Foo bar = new Foo (Bar);
+ bar ("i = ", 5);
+ }
+ }
+}