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:
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 () {}
+}