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

test-225.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 34fec7933f57bf3718459b5cf92dcafff24f57e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;

class A {
	public int foo = 1;
}

class B : A {
	public new int foo ()
	{
		return 1;
	}
	
	public static void Main ()
	{
		B b = new B ();
		Console.WriteLine (b.foo ());
	}
}