Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2007-11-07 15:11:10 +0300
committerMarek Safar <marek.safar@gmail.com>2007-11-07 15:11:10 +0300
commit62b00308a28bebbf308a69c1e351beae55efb6f8 (patch)
tree89072dc1eb26374c6d1a1be6ff447dd1839b2cd4 /mcs/tests/test-597.cs
parent62c92ccff333128102ec7e74e0288abcf2fb8bd5 (diff)
New test.
svn path=/trunk/mcs/; revision=89096
Diffstat (limited to 'mcs/tests/test-597.cs')
-rw-r--r--mcs/tests/test-597.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/test-597.cs b/mcs/tests/test-597.cs
new file mode 100644
index 00000000000..87b04dde62c
--- /dev/null
+++ b/mcs/tests/test-597.cs
@@ -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