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>2014-05-23 11:27:16 +0400
committerMarek Safar <marek.safar@gmail.com>2014-05-23 11:27:58 +0400
commitd737b63512212d44deabca4b0ee99a5cb9535a9c (patch)
tree49a38df873efa58874b91d99eef48b133670265f /mcs/tests/gtest-613.cs
parent051ffdfbde88161199dd29a2db17fd181afb5e5a (diff)
[mcs] Handling of nested effective base classes
Diffstat (limited to 'mcs/tests/gtest-613.cs')
-rw-r--r--mcs/tests/gtest-613.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/gtest-613.cs b/mcs/tests/gtest-613.cs
new file mode 100644
index 00000000000..56e239ede78
--- /dev/null
+++ b/mcs/tests/gtest-613.cs
@@ -0,0 +1,26 @@
+class X
+{
+ public static void Foo (X x1)
+ {
+ }
+
+ public static void Main ()
+ {
+ C<X, X, X>.Test (new X ());
+ }
+}
+
+class Y
+{
+}
+
+class C<T1, T2, T3>
+ where T1 : X
+ where T2 : T1
+ where T3 : T2
+{
+ public static void Test (T3 t3)
+ {
+ X.Foo (t3);
+ }
+} \ No newline at end of file