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-06 18:51:40 +0400
committerMarek Safar <marek.safar@gmail.com>2014-05-06 18:52:24 +0400
commit1ef93c53187515369f23414beb413688d4637cdb (patch)
tree0f1fa61694d2144fc9394a9f3e2d2af653bf6d1e /mcs/tests/gtest-609.cs
parent48742484f728d757c87ba2630912a945bc861f2a (diff)
[mcs] Do type parameter conversion involving type parameters using dependency rules. Fixes #18473
Diffstat (limited to 'mcs/tests/gtest-609.cs')
-rw-r--r--mcs/tests/gtest-609.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/tests/gtest-609.cs b/mcs/tests/gtest-609.cs
new file mode 100644
index 00000000000..8d70bdb97e9
--- /dev/null
+++ b/mcs/tests/gtest-609.cs
@@ -0,0 +1,18 @@
+class X<T, TBase> where T : TBase
+{
+ static TBase tb;
+
+ public static void X2<T2> (T2 arg) where T2 : T
+ {
+ tb = arg;
+ tb = (T2)tb;
+ }
+}
+
+class Z
+{
+ public static void Main ()
+ {
+ X<string, object>.X2 ("");
+ }
+} \ No newline at end of file