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

cs1540-5.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d6cc4dc1808a2c7f06c2a9f8bd58166892a9217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class A {
	protected int n = 0;
}

class B : A { }

class C : B {
	class N {
		static internal int foo (B b) { return b.n; }
	}
	public static int Main () {
		return N.foo (new B ());
	}
}