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

cs0122-32.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4988ff1578f5e37eff008ab0db5f65eb5c1b8412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// CS0122: `A.Foo()' is inaccessible due to its protection level
// Line: 23

class A
{
	public void Foo (int i)
	{
	}

	private void Foo ()
	{
	}
}

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

	void Test ()
	{
		Foo ();
	}
}