Merge pull request #5082 from kumpera/fix-ro-fs-file-delete
[mono.git] / mcs / errors / cs0038-4.cs
1 // CS0038: 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 }