Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0038.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8062934e340d08bfcfc045fdef9473f1f8c63079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// cs0038.cs: Cannot access a nonstatic member of outer type `X' via nested type `X.Y'.
// line: 15
using System;

class X
{
	int a = 5;

	class Y
	{
		public long b;

		public Y ()
		{
			Console.WriteLine (a);
		}
	}

	static void Main ()
	{
	}
}