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-01-30 18:32:12 +0400
committerMarek Safar <marek.safar@gmail.com>2013-01-30 18:55:58 +0400
commit5a76c3e532b93c25a0f35b2f32ce6f239bf2e73b (patch)
tree23e14d0979c5b5997a4d0d430c9b0582a70adf34 /mcs/tests/test-862.cs
parent8dca6d7a4d2a8e96999d9646bab74c2b9d9c6e28 (diff)
Exclude operators from member access lookup
Diffstat (limited to 'mcs/tests/test-862.cs')
-rw-r--r--mcs/tests/test-862.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/test-862.cs b/mcs/tests/test-862.cs
new file mode 100644
index 00000000000..2a9c433e6e5
--- /dev/null
+++ b/mcs/tests/test-862.cs
@@ -0,0 +1,22 @@
+class op_Addition
+{
+ public static int Foo = 42;
+
+ public class Builder
+ {
+ public int Foo
+ {
+ get { return op_Addition.Foo; }
+ }
+
+ public static int operator + (Builder a, Builder b)
+ {
+ return 0;
+ }
+ }
+
+ public static void Main ()
+ {
+ var x = new Builder ().Foo;
+ }
+} \ No newline at end of file