[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / test-771.cs
blob6deae7aa762139b26d5adc9407ac6c6b5a651506
1 using System;
3 namespace InternalAccess
5 public abstract class Base
7 internal Base () { }
8 internal string Prop { get { return "A"; } }
11 public class DerivedInternalExample : Base
13 public DerivedInternalExample () { }
14 internal new string Prop { get { return "D"; } }
17 public class DerivedProtectedExample : Base
19 public DerivedProtectedExample () { }
20 protected new string Prop { get { return "E"; } }
23 class MainClass
25 public static int Main ()
27 DerivedInternalExample die = new DerivedInternalExample ();
28 if (die.Prop != "D")
29 return 1;
31 DerivedProtectedExample dpe = new DerivedProtectedExample ();
32 if (dpe.Prop != "A")
33 return 2;
35 return 0;