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:
authorMartin Baulig <martin@novell.com>2005-12-15 01:13:01 +0300
committerMartin Baulig <martin@novell.com>2005-12-15 01:13:01 +0300
commit030cdbcbf280de850c5013ad251044f9efd34f96 (patch)
tree2b5e58e3be036df272e827d4169933dda6a8866f /mcs/tests/gtest-229.cs
parentbf598d749e848b20c91a96f1d61e35ff49062d6e (diff)
New test.
svn path=/trunk/mcs/; revision=54416
Diffstat (limited to 'mcs/tests/gtest-229.cs')
-rw-r--r--mcs/tests/gtest-229.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/gtest-229.cs b/mcs/tests/gtest-229.cs
new file mode 100644
index 00000000000..2006e12c854
--- /dev/null
+++ b/mcs/tests/gtest-229.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+public class B : IComparable<B> {
+ public int CompareTo (B b)
+ {
+ return 0;
+ }
+}
+
+public class Tester
+{
+ static int Main ()
+ {
+ B b = new B ();
+
+ // This should be false
+ if (b is IComparable<object>)
+ return 1;
+ return 0;
+ }
+}