Author: marek
Date: 2007-11-07 07:11:10 -0500 (Wed, 07 Nov 2007)
New Revision: 89096
Added:
trunk/mcs/tests/test-597.cs
Log:
New test.
Added: trunk/mcs/tests/test-597.cs
===================================================================
--- trunk/mcs/tests/test-597.cs 2007-11-07 12:08:42 UTC (rev 89095)
+++ trunk/mcs/tests/test-597.cs 2007-11-07 12:11:10 UTC (rev 89096)
@@ -0,0 +1,32 @@
+namespace TestNS
+{
+ public interface IHoge {}
+
+ public class Foo {}
+
+ public class XElement : Element
+ {
+ public new Bar Document { get { return null; } }
+
+ public object CrashHere {
+ get { return (Document.Root == this) ? null : ""; }
+ }
+ }
+
+ public class Element
+ {
+ public Foo Document { get { return null; } }
+ }
+
+ public class Bar
+ {
+ public IHoge Root { get { return null; } }
+ }
+
+ public class C
+ {
+ public static void Main ()
+ {
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/mcs/tests/test-597.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches