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:
authorMarek Safar <marek.safar@gmail.com>2017-05-30 20:30:43 +0300
committerMarek Safar <marek.safar@gmail.com>2017-05-30 20:36:13 +0300
commitd466cb5fa58e3ad1a5d89254dbe668bcff58eb77 (patch)
tree068bacc839cb791d95ab58b0d33e6e6d467442a3 /mcs/tests/test-945.cs
parent828d2adff9e0290539346df152ac3decf97db35e (diff)
[mcs] Don't emit param-array attribute on method overrides, it's ignored by C# compiler. Fixes #53244
Diffstat (limited to 'mcs/tests/test-945.cs')
-rw-r--r--mcs/tests/test-945.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/test-945.cs b/mcs/tests/test-945.cs
new file mode 100644
index 00000000000..398787db29f
--- /dev/null
+++ b/mcs/tests/test-945.cs
@@ -0,0 +1,22 @@
+public abstract class A
+{
+ public abstract void Bind (string [] args);
+}
+
+public class B : A
+{
+ public override void Bind (params string [] args)
+ {
+ }
+
+ public static int Main ()
+ {
+ var m = typeof (B).GetMethod ("Bind");
+ var p = m.GetParameters ();
+ var ca = p[0].GetCustomAttributes (false);
+ if (ca.Length != 0)
+ return 1;
+
+ return 0;
+ }
+}