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-03-30 02:01:54 +0400
committerMartin Baulig <martin@novell.com>2004-03-30 02:01:54 +0400
commitecbe385c3ac209a6fe99812a16d9de43ef624e83 (patch)
treeead6d9dd74c37516d55479fb84788906e9aa7a3a /mcs/errors/gcs0425.cs
parentab0b6207b2da37e59065757684d2bf4c32dbe320 (diff)
New test.
svn path=/trunk/mcs/; revision=24733
Diffstat (limited to 'mcs/errors/gcs0425.cs')
-rw-r--r--mcs/errors/gcs0425.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/gcs0425.cs b/mcs/errors/gcs0425.cs
new file mode 100644
index 00000000000..b9fb1dfab15
--- /dev/null
+++ b/mcs/errors/gcs0425.cs
@@ -0,0 +1,16 @@
+using System;
+
+public abstract class Base
+{
+ public abstract T G<T> (T t) where T : IComparable;
+}
+
+class Derived : Base
+{
+ // 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;
+ }
+}