From 4b309832eb3f51b7acc5f0baaf75afb72fd66d5d Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Tue, 2 Dec 2008 17:59:28 +0000 Subject: [PATCH] New test. svn path=/trunk/mcs/; revision=120511 --- mcs/errors/cs0737-3.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 mcs/errors/cs0737-3.cs diff --git a/mcs/errors/cs0737-3.cs b/mcs/errors/cs0737-3.cs new file mode 100644 index 00000000000..aaf15167aac --- /dev/null +++ b/mcs/errors/cs0737-3.cs @@ -0,0 +1,22 @@ +// CS0737: `MySubClass' does not implement interface member `I.Foo.set' and the best implementing candidate `MyTest.Foo.set' in not public +// Line: 6 + +using System; + +interface I +{ + int Foo { get; set; } +} + +public class MySubClass : MyTest, I +{ +} + +public class MyTest +{ + public int Foo + { + get { return 1; } + protected set { } + } +} -- 2.11.4.GIT