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-12-08 11:42:23 +0400
committerMarek Safar <marek.safar@gmail.com>2013-12-08 13:42:12 +0400
commit6a84e4ed2178c40dd3013b9855380d4ad7b2f89a (patch)
tree34d03fc73ba4f2fbc98cef79b3e18249373448a6 /mcs/tests/gtest-600.cs
parent6cce4a3937d2b007d2d2edfb245cc1f5c66a3d95 (diff)
Add new test
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 00000000000..54b6c29244a
--- /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>
+{
+}