summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-600.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/tests/gtest-600.cs')
-rw-r--r--mcs/tests/gtest-600.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/mcs/tests/gtest-600.cs b/mcs/tests/gtest-600.cs
new file mode 100644
index 0000000000..54b6c29244
--- /dev/null
+++ b/mcs/tests/gtest-600.cs
@@ -0,0 +1,34 @@
+class A { }
+class B { }
+
+interface ICharlie<T> { }
+
+class Delta : ICharlie<A>, ICharlie<B>
+{
+ static void Test<U> (ICharlie<U> icu, U u)
+ {
+ }
+
+ public void World<U> (U u, IFoo<U> foo)
+ {
+ }
+
+ public void Test (Foo foo)
+ {
+ World ("Canada", foo);
+ }
+
+ static void Main ()
+ {
+ Test (new Delta (), new A ());
+ Test (new Delta (), new B ());
+ }
+}
+
+public interface IFoo<T>
+{
+}
+
+public class Foo : IFoo<int>, IFoo<string>
+{
+}