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>2013-03-09 01:55:23 +0400
committerMarek Safar <marek.safar@gmail.com>2013-03-09 02:46:26 +0400
commit92a6488c89030586d717a69c8fd2a7ab20442f52 (patch)
treecab690b8a84fae1b0aa5cfe1cbcfef0dc3054858 /mcs/tests/test-866.cs
parente133d105a8ba9ee2f42e06a40ac661371c547c4b (diff)
Clone shared members list before operators merging. Fixes #10967
Diffstat (limited to 'mcs/tests/test-866.cs')
-rw-r--r--mcs/tests/test-866.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/mcs/tests/test-866.cs b/mcs/tests/test-866.cs
new file mode 100644
index 00000000000..723795ee412
--- /dev/null
+++ b/mcs/tests/test-866.cs
@@ -0,0 +1,30 @@
+class C : B
+{
+ public static bool operator + (C a, short b)
+ {
+ return false;
+ }
+
+ public static bool operator + (C a, long b)
+ {
+ return false;
+ }
+}
+
+class B
+{
+ public static bool operator + (B b, string s)
+ {
+ return false;
+ }
+}
+
+public class Test
+{
+ public static void Main ()
+ {
+ var c = new C ();
+ var a1 = c + "a";
+ var a2 = c + "a";
+ }
+} \ No newline at end of file