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>2011-05-04 15:18:15 +0400
committerMarek Safar <marek.safar@gmail.com>2011-05-04 15:19:09 +0400
commita4a61d8c4109a656d41a211c5ec699e3979cfdc9 (patch)
tree518cd5e436278a08df5e3a8b489556e408b4a9cd /mcs/tests/gtest-variance-19.cs
parentd8dc2592991e650ea1c0056d5acf7d2ba4f3729c (diff)
[691531] Variance conversion requires type parameters to be reference types
Diffstat (limited to 'mcs/tests/gtest-variance-19.cs')
-rw-r--r--mcs/tests/gtest-variance-19.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/gtest-variance-19.cs b/mcs/tests/gtest-variance-19.cs
new file mode 100644
index 00000000000..a261ea6fa23
--- /dev/null
+++ b/mcs/tests/gtest-variance-19.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+
+public class Test
+{
+ static void Bla<T, U> () where T : class, U
+ {
+ T[] ta = new T[0];
+ IEnumerable<T> ita = ta;
+ IEnumerable<U> itu = ita;
+ }
+
+ static void Main ()
+ {
+ Bla<string, object> ();
+ }
+}