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