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>2013-10-25 12:41:41 +0400
committerMarek Safar <marek.safar@gmail.com>2013-10-25 13:59:53 +0400
commitfcad876ef1cf57a0b8b066a2b5080885e32e8fa2 (patch)
tree8661d41eb7eb2d92792b2b14d69a8fbe81bba96f /mcs/tests/gtest-599.cs
parentf4aa1c4149c83106075871486ac6eaebdeba6177 (diff)
When looking for base implementation of generic MVAR methods use non-inflated parameter types. Fixes #15523
Diffstat (limited to 'mcs/tests/gtest-599.cs')
-rw-r--r--mcs/tests/gtest-599.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/gtest-599.cs b/mcs/tests/gtest-599.cs
new file mode 100644
index 00000000000..a25e7b6e669
--- /dev/null
+++ b/mcs/tests/gtest-599.cs
@@ -0,0 +1,32 @@
+using System;
+
+public abstract class A<X>
+{
+ public abstract T Test<T> (T t, X x);
+}
+
+public class B : A<char>
+{
+ public override T Test<T> (T t, char x)
+ {
+ Console.WriteLine ("B");
+ return default (T);
+ }
+}
+
+public class C : B
+{
+ public override T Test<T> (T t, char c)
+ {
+ base.Test ("a", 'a');
+ return default (T);
+ }
+}
+
+class X
+{
+ public static void Main ()
+ {
+ new C ().Test<int> (1, '1');
+ }
+} \ No newline at end of file