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-08-23 13:22:30 +0400
committerMarek Safar <marek.safar@gmail.com>2011-08-23 18:26:44 +0400
commitaba797f52a7675e0e59f5bf82a387c9f8b3f841b (patch)
tree0ea70af719ebfb49da84dc3c76665a0671700176 /mcs/tests/gtest-559.cs
parentdc2211d85486bc59d088fa26212b6ab5d179c972 (diff)
Use inflated version of interfaces when checking base method type parameter contraints
Diffstat (limited to 'mcs/tests/gtest-559.cs')
-rw-r--r--mcs/tests/gtest-559.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/gtest-559.cs b/mcs/tests/gtest-559.cs
new file mode 100644
index 00000000000..5f46db374f4
--- /dev/null
+++ b/mcs/tests/gtest-559.cs
@@ -0,0 +1,23 @@
+interface I<T>
+{
+}
+
+interface A<Source>
+{
+ void Test<U> () where U : I<Source>;
+}
+
+struct B<TContext> : A<int>
+{
+ public void Test<U2> () where U2 : I<int>
+ {
+ }
+}
+
+class C : I<int>
+{
+ public static void Main ()
+ {
+ new B<string> ().Test<C> ();
+ }
+}