diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-06-16 17:19:33 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-06-16 17:19:33 +0400 |
commit | 809f24fe47e875766f3da70ffabf307a815dbff7 (patch) | |
tree | d3e49329ffa3c61bb2f9d5629812a3cb8adc3fdf /mcs/errors/cs0108-4.cs | |
parent | ce7abd8456d2eb7df7616585cca970d2e461eab1 (diff) |
new tests
svn path=/trunk/mcs/; revision=29685
Diffstat (limited to 'mcs/errors/cs0108-4.cs')
-rw-r--r-- | mcs/errors/cs0108-4.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0108-4.cs b/mcs/errors/cs0108-4.cs new file mode 100644 index 00000000000..74a9fa0b4c4 --- /dev/null +++ b/mcs/errors/cs0108-4.cs @@ -0,0 +1,14 @@ +// cs0108.cs: The new keyword is required on 'Derived.Prop(int)' because it hides inherited member +// Line: 13 + +class Base { + public void Prop (int a) {} +} + +class Derived : Base { + public int Prop { + get { + return 0; + } + } +} |