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-10-22 19:06:24 +0400
committerMarek Safar <marek.safar@gmail.com>2010-10-22 22:32:10 +0400
commitb5b838910cf2cfbec9ee3136553a762e26ef514e (patch)
tree93ba84e5b5c0731ff1b711f97de7fc1791ef8d6a /mcs/tests/gtest-541.cs
parentdc31abbde138fac908830fc75425f2064a63b896 (diff)
Include parent type parameters when inflating nested type parameter constraint of type parameter type
Diffstat (limited to 'mcs/tests/gtest-541.cs')
-rw-r--r--mcs/tests/gtest-541.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/gtest-541.cs b/mcs/tests/gtest-541.cs
new file mode 100644
index 00000000000..1984d873cbc
--- /dev/null
+++ b/mcs/tests/gtest-541.cs
@@ -0,0 +1,26 @@
+public class Foo
+{
+}
+
+public class Top<S> where S : Foo
+{
+ public class Base<T> where T : S
+ {
+ public class Derived<U> where U : T
+ {
+ public void Test ()
+ {
+ }
+ }
+ }
+}
+
+public class Test
+{
+ public static int Main ()
+ {
+ Top<Foo>.Base<Foo>.Derived<Foo> d = new Top<Foo>.Base<Foo>.Derived<Foo> ();
+ d.Test ();
+ return 0;
+ }
+}