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>2006-03-01 17:42:03 +0300
committerRaja R Harinath <harinath@hurrynot.org>2006-03-01 17:42:03 +0300
commit7713641ae9075059e06b2c3c78944c83a46ba393 (patch)
treefd646609f0b1cc1b931928ef0d2ca54f0a0c974b /mcs/tests/test-493.cs
parent4675380f0b7ace5683e840915f8b3587f56a143c (diff)
Fix #77628.
* mcs/ecore.cs (PropertyExpr.InstanceResolve): Fix CS1540 check. * gmcs/ecore.cs (PropertyExpr.InstanceResolve): Likewise. * tests/test-493.cs: New test from #77628. svn path=/trunk/mcs/; revision=57464
Diffstat (limited to 'mcs/tests/test-493.cs')
-rw-r--r--mcs/tests/test-493.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/tests/test-493.cs b/mcs/tests/test-493.cs
new file mode 100644
index 00000000000..b427f77f889
--- /dev/null
+++ b/mcs/tests/test-493.cs
@@ -0,0 +1,11 @@
+class A {
+ protected int f { get { return 1; } }
+}
+
+class B : A {
+ int bar () { return new C().f; }
+ }
+
+class C : B {
+ static void Main () {}
+}