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:
authorMiguel de Icaza <miguel@gnome.org>2009-08-07 06:59:03 +0400
committerMiguel de Icaza <miguel@gnome.org>2009-08-07 06:59:03 +0400
commit857f143465ba0af5ace30f28d7a02237aeccdca4 (patch)
tree012eee6f991e255d5d1bb3f5bb93b577c72e0517 /mcs/errors
parent0b580f7a17561a17f0451a8281d5b0a847869783 (diff)
2009-08-06 Miguel de Icaza <miguel@novell.com>
* generic.cs: This loop was incorrect, it was increment ii, but checking for `i'. This was a change introduced to fix #327497, now we fix #424012. svn path=/trunk/mcs/; revision=139540
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/cs0425.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/errors/cs0425.cs b/mcs/errors/cs0425.cs
new file mode 100644
index 00000000000..6fa481dae58
--- /dev/null
+++ b/mcs/errors/cs0425.cs
@@ -0,0 +1,22 @@
+// CS0425: The constraints for type parameter `T' of method `Test.Baz.Method<T,V>()' must match the constraints for type parameter `T' of interface method `Test.IBar.Method<T,V>()'. Consider using an explicit interface implementation instead
+// Line: 18
+namespace Test
+{
+ using System;
+
+ public interface IFoo
+ {
+ }
+
+ public interface IBar
+ {
+ void Method<T, V>() where T : IFoo where V : T;
+ }
+
+ public class Baz : IBar
+ {
+ public void Method<T, V>() where T : IBar where V : T
+ {
+ }
+ }
+}