diff options
author | Martin Baulig <martin@novell.com> | 2004-08-25 23:11:12 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-08-25 23:11:12 +0400 |
commit | c206c9a7389a12a67cc8d3ccd264e223e8e2e41d (patch) | |
tree | 0b1a67d265e8cd529a501bce65c4d921abaf3860 /mcs/errors/gcs0425.cs | |
parent | ae6bc4909f86361f2c29ce5e22c3e0c2e2b76c5a (diff) |
New test.
svn path=/trunk/mcs/; revision=32837
Diffstat (limited to 'mcs/errors/gcs0425.cs')
-rw-r--r-- | mcs/errors/gcs0425.cs | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/mcs/errors/gcs0425.cs b/mcs/errors/gcs0425.cs index b9fb1dfab15..bd12e082acc 100644 --- a/mcs/errors/gcs0425.cs +++ b/mcs/errors/gcs0425.cs @@ -1,16 +1,19 @@ -using System; +// 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: 12 +interface IFoo<T> +{ + void Test<U> () + where U : T; +} -public abstract class Base +class Foo<T> : IFoo<T> { - public abstract T G<T> (T t) where T : IComparable; + public void Test<V> () + { } } -class Derived : Base +class X { - // CS0425: The constraints of type parameter `T' of method `G' must match the - // constraints for type parameter `T' of method `Base.G' - public override T G<T> (T t) - { - return t; - } + static void Main () + { } } |