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

test-242.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 989e6d99fce3f062ad54a9a60245c3d776f818e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This code must be compilable without any warning
// Compiler options: -warnaserror -warn:4

class BaseClass {
        public int Location = 3;
}

class Derived : BaseClass {
	public new int Location {
            get {
                return 9;
            }
        }
        
        public static void Main () { }
}