diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-03-17 01:32:21 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-03-17 01:32:21 +0300 |
commit | 6aea207dbf6f5ca8ee8249c7e9b172265d60e456 (patch) | |
tree | 31106ba15b9ca9119d2f8d5661d15511290dbe6c /mcs/tests/test-744.cs | |
parent | 8516acf9493241480d456fc06aca2da2d712e034 (diff) |
New test.
svn path=/trunk/mcs/; revision=153703
Diffstat (limited to 'mcs/tests/test-744.cs')
-rw-r--r-- | mcs/tests/test-744.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mcs/tests/test-744.cs b/mcs/tests/test-744.cs new file mode 100644 index 00000000000..cd3b7fa005b --- /dev/null +++ b/mcs/tests/test-744.cs @@ -0,0 +1,37 @@ +class M +{ + sealed class Nested : C + { + protected override void Extra () + { + } + } + + public static void Main () + { + new Nested (); + } +} + +abstract class A +{ + protected abstract void AMethod (); +} + +abstract class B : A +{ + protected abstract void BMethod (); +} + +abstract class C : B +{ + protected override void AMethod () + { + } + + protected override void BMethod () + { + } + + protected abstract void Extra (); +} |