a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
16 lines
321 B
C#
16 lines
321 B
C#
// 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 () { }
|
|
} |