* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / errors / cs0038-3.cs
1 // cs0038.cs: Cannot access a nonstatic member of outer type `A' via nested type `B.C'
2 // Line: 15
3
4 public class A {
5         public int Foo { get { return 1; } }
6 }
7
8 public class B : A {
9         public static void Main ()
10         {
11         }
12
13         public class C {
14                 public void Baz ()
15                 {
16                         int x = Foo;
17                 }
18         }
19 }