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-04-15 13:45:57 +0400
committerMarek Safar <marek.safar@gmail.com>2011-04-15 13:46:43 +0400
commite6cbac20702c98956c5d804a4ec6380346dce24e (patch)
tree98acf29481a806a02c5b639c39294be8cadaffb1 /mcs/tests/gtest-558.cs
parent15d313b0e30f33b301a317ac2275440a8fccf3ed (diff)
Change ImplicitReferenceConversion not to relly on broken IsValueType
Diffstat (limited to 'mcs/tests/gtest-558.cs')
-rw-r--r--mcs/tests/gtest-558.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/gtest-558.cs b/mcs/tests/gtest-558.cs
new file mode 100644
index 00000000000..18038cfd9a5
--- /dev/null
+++ b/mcs/tests/gtest-558.cs
@@ -0,0 +1,19 @@
+using System;
+
+abstract class A<T>
+{
+ public abstract void Foo<U> (U arg) where U : T;
+}
+
+class B : A<int>
+{
+ public override void Foo<U> (U arg)
+ {
+ ValueType vt = arg;
+ }
+
+ public static void Main ()
+ {
+ new B ().Foo (5);
+ }
+}