New test based on bug #80407
authorMarek Safar <marek.safar@gmail.com>
Sat, 24 Feb 2007 15:45:04 +0000 (15:45 -0000)
committerMarek Safar <marek.safar@gmail.com>
Sat, 24 Feb 2007 15:45:04 +0000 (15:45 -0000)
svn path=/trunk/mcs/; revision=73392

mcs/tests/test-566.cs [new file with mode: 0644]

diff --git a/mcs/tests/test-566.cs b/mcs/tests/test-566.cs
new file mode 100644 (file)
index 0000000..679d5d8
--- /dev/null
@@ -0,0 +1,65 @@
+public class Test
+{
+       private C _vssItem;
+
+       public string Spec
+       {
+               get { return _vssItem.Spec; }
+       }
+       
+       void Foo (C c)
+       {
+               c.Checkout ();
+       }
+       
+       void Foo2 (CC cc)
+       {
+               cc.Spec = "aa";
+       }
+
+       public static void Main ()
+       {
+       }
+}
+
+interface A
+{
+       void Checkout ();
+       string Spec
+       {
+               get;
+       }
+}
+
+interface B : A
+{
+       new void Checkout ();
+       new string Spec
+       {
+               get;
+       }
+}
+
+interface C : B
+{
+}
+
+class CA
+{
+       public string Spec
+       {
+               set {}
+       }
+}
+
+class CB : CA
+{
+       new public string Spec
+       {
+               set {}
+       }
+}
+
+class CC : CB
+{
+}
\ No newline at end of file