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:
authorMartin Baulig <martin@novell.com>2006-09-19 04:30:13 +0400
committerMartin Baulig <martin@novell.com>2006-09-19 04:30:13 +0400
commit711bcdb393abbea8b4236a20dd939a9c7368df10 (patch)
treefb5f2cd1774228933d028d9f09bd6e3e3d726e2b /mcs/tests/gtest-288.cs
parent505e4ef0ada0a6ddf5f9c512f1c7588d2f8ce112 (diff)
2006-09-19 Martin Baulig <martin@ximian.com>
* ecore.cs (PropertyExpr.InstanceResolve): Fix the CS1540 check. svn path=/trunk/mcs/; revision=65618
Diffstat (limited to 'mcs/tests/gtest-288.cs')
-rwxr-xr-xmcs/tests/gtest-288.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/mcs/tests/gtest-288.cs b/mcs/tests/gtest-288.cs
new file mode 100755
index 00000000000..2d29e0f8895
--- /dev/null
+++ b/mcs/tests/gtest-288.cs
@@ -0,0 +1,31 @@
+using System;
+
+public abstract class A
+{
+ protected bool Test (int a)
+ {
+ return a == 5;
+ }
+}
+
+public class B : A
+{
+ public void Test ()
+ { }
+
+ class C : A
+ {
+ B b;
+
+ public bool Foo (int a)
+ {
+ return b.Test (a);
+ }
+ }
+}
+
+class X
+{
+ static void Main ()
+ { }
+}