New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 2 Mar 2010 09:33:08 +0000 (09:33 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 2 Mar 2010 09:33:08 +0000 (09:33 -0000)
svn path=/trunk/mcs/; revision=152814

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

diff --git a/mcs/tests/test-741-lib.cs b/mcs/tests/test-741-lib.cs
new file mode 100644 (file)
index 0000000..d8fc5db
--- /dev/null
@@ -0,0 +1,22 @@
+// Compiler options: -target:library
+
+public interface IA
+{
+       string Prop { get; }
+}
+
+public interface IAA
+{
+       char NestedProp { set; }
+}
+
+public interface IB : IAA
+{
+       bool Prop { get; }
+       long NestedProp { set; }
+}
+
+public interface IFoo : IA, IB
+{
+       int Prop { get; }
+}
diff --git a/mcs/tests/test-741.cs b/mcs/tests/test-741.cs
new file mode 100644 (file)
index 0000000..5032626
--- /dev/null
@@ -0,0 +1,15 @@
+// Compiler options: -r:test-741-lib.dll
+
+class Test
+{
+       void test ()
+       {
+               IFoo f = null;
+               int v = f.Prop;
+               f.NestedProp = 4;               
+       }
+       
+       public static void Main ()
+       {
+    }
+}