diff options
author | Martin Baulig <martin@novell.com> | 2004-08-24 22:56:49 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-08-24 22:56:49 +0400 |
commit | acf0c24425216410d4e221ea248e38a3844b2fa9 (patch) | |
tree | 6f29578170cb073b6a91b71bc42428e6a8f9e7ac /mcs/errors/gcs0029.cs | |
parent | 320d2cac84f081ff80e3c162d6d99944d782a6f8 (diff) |
New test.
svn path=/trunk/mcs/; revision=32780
Diffstat (limited to 'mcs/errors/gcs0029.cs')
-rw-r--r-- | mcs/errors/gcs0029.cs | 17 |
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> (); + } +} |