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:
authorMartin Baulig <martin@novell.com>2004-08-25 23:11:12 +0400
committerMartin Baulig <martin@novell.com>2004-08-25 23:11:12 +0400
commitc206c9a7389a12a67cc8d3ccd264e223e8e2e41d (patch)
tree0b1a67d265e8cd529a501bce65c4d921abaf3860 /mcs/errors/gcs0425-2.cs
parentae6bc4909f86361f2c29ce5e22c3e0c2e2b76c5a (diff)
New test.
svn path=/trunk/mcs/; revision=32837
Diffstat (limited to 'mcs/errors/gcs0425-2.cs')
-rw-r--r--mcs/errors/gcs0425-2.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/errors/gcs0425-2.cs b/mcs/errors/gcs0425-2.cs
new file mode 100644
index 00000000000..f305366175c
--- /dev/null
+++ b/mcs/errors/gcs0425-2.cs
@@ -0,0 +1,20 @@
+// CS0425: The constraints for type parameter `V' of method `Foo`1.Test()' must match the constraints for type parameter `U' of interface method `IFoo`1.Test()'. Consider using an explicit interface implementation instead
+// Line: 13
+interface IFoo<T>
+{
+ void Test<U> ()
+ where U : T;
+}
+
+class Foo<T> : IFoo<T>
+{
+ public void Test<V> ()
+ where V :X
+ { }
+}
+
+class X
+{
+ static void Main ()
+ { }
+}