diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-12-09 13:55:25 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-12-09 13:55:25 +0300 |
commit | 1bcdb25e388e8ce2af630773d5b87fe48b9491d1 (patch) | |
tree | 9a57d1936c31c4c9582e6eeafb9f25912d98f676 /mcs/tests/test-xml-050.cs | |
parent | e5b7d1e1fe00b5d25f2a8a726cc8687ac507ba28 (diff) |
2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
* doc.cs : so it turned out that we cannot skip override check for
interface members. Fixed bug #76954.
* test-xml-050-ref.xml, test-xml-050.cs : new test for bug #76954.
* known-issues-gmcs : fixed filename and removed test-60.cs.
svn path=/trunk/mcs/; revision=54154
Diffstat (limited to 'mcs/tests/test-xml-050.cs')
-rw-r--r-- | mcs/tests/test-xml-050.cs | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/mcs/tests/test-xml-050.cs b/mcs/tests/test-xml-050.cs new file mode 100644 index 00000000000..d1edc58f2b8 --- /dev/null +++ b/mcs/tests/test-xml-050.cs @@ -0,0 +1,61 @@ +// Compiler options: -doc:xml-050.cs -warnaserror +// see bug #76954. +// NOTE: It might got broken after some /doc related merge. +/// <summary> +/// <see cref="IB.Execute ()" /> +/// <see cref="IB.Name" /> +/// <see cref="B.Execute ()" /> +/// <see cref="B.Name" /> +/// </summary> +public class EntryPoint { + static void Main () { + } +} + +/// <summary /> +public interface IA { + /// <summary /> + string Name { + get; + } + + /// <summary /> + string Execute (); +} + +/// <summary /> +public interface IB : IA { + /// <summary /> + new int Name { + get; + } + + /// <summary /> + new int Execute (); +} + +/// <summary /> +public class A { + /// <summary /> + public string Name { + get { return null; } + } + + /// <summary /> + public string Execute () { + return null; + } +} + +/// <summary /> +public class B : A { + /// <summary /> + public new int Name { + get { return 0; } + } + + /// <summary /> + public new int Execute () { + return 0; + } +} |