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-24 22:56:49 +0400
committerMartin Baulig <martin@novell.com>2004-08-24 22:56:49 +0400
commitacf0c24425216410d4e221ea248e38a3844b2fa9 (patch)
tree6f29578170cb073b6a91b71bc42428e6a8f9e7ac /mcs/errors/gcs0029.cs
parent320d2cac84f081ff80e3c162d6d99944d782a6f8 (diff)
New test.
svn path=/trunk/mcs/; revision=32780
Diffstat (limited to 'mcs/errors/gcs0029.cs')
-rw-r--r--mcs/errors/gcs0029.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/gcs0029.cs b/mcs/errors/gcs0029.cs
new file mode 100644
index 00000000000..f4812f54904
--- /dev/null
+++ b/mcs/errors/gcs0029.cs
@@ -0,0 +1,17 @@
+// CS0029: Cannot convert implicitly from `Bar`1' to `Foo`1'
+// Line: 15
+class Foo<T>
+{
+}
+
+class Bar<T> : Foo<T>
+{
+}
+
+class X
+{
+ static void Main ()
+ {
+ Foo<int> foo = new Bar<long> ();
+ }
+}