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>2010-04-28 15:04:23 +0400
committerMarek Safar <marek.safar@gmail.com>2010-04-28 15:04:23 +0400
commit136d27b4311c3e1b722587d3e835906d9c61053a (patch)
tree80519cdad348b5c4f57e613b4eca466cb6db44bf /mcs/tests/gtest-497.cs
parent052a8802d7a797688ca6f2ccf8ebb1db433a0abe (diff)
New tests.
svn path=/trunk/mcs/; revision=156308
Diffstat (limited to 'mcs/tests/gtest-497.cs')
-rw-r--r--mcs/tests/gtest-497.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/gtest-497.cs b/mcs/tests/gtest-497.cs
new file mode 100644
index 00000000000..2cc549e4024
--- /dev/null
+++ b/mcs/tests/gtest-497.cs
@@ -0,0 +1,19 @@
+class Item
+{
+}
+
+class ItemCollection<T> where T : Item
+{
+ public void Bind<U> (ItemCollection<U> sub) where U : T
+ {
+ }
+}
+
+class a
+{
+ static void Main ()
+ {
+ var ic = new ItemCollection<Item> ();
+ ic.Bind (ic);
+ }
+}