summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0038-4.cs
blob: 021ff3f59d7f01e6c7f6a004d312339eb482aaa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0038: Cannot access a nonstatic member of outer type `B' via nested type `B.C'
// Line: 14

public class B {
	public static void Main ()
	{
	}

	public int Foo { get { return 1; } }

	public class C {
		public void Baz ()
		{
			int x = Foo;
		}
	}
}