diff options
author | Martin Baulig <martin@novell.com> | 2004-03-31 05:06:58 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-03-31 05:06:58 +0400 |
commit | 91fd729353f50969f0dd4afa61bb9421d61e8e8b (patch) | |
tree | 5caeff039fec9b6eea7ddbf4407a6fae50e24897 /mcs/errors/gcs0309.cs | |
parent | 6ab9c0ca2a6e382bb3a1c0ad0b3502a59eac6f31 (diff) |
New tests.
svn path=/trunk/mcs/; revision=24821
Diffstat (limited to 'mcs/errors/gcs0309.cs')
-rw-r--r-- | mcs/errors/gcs0309.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/errors/gcs0309.cs b/mcs/errors/gcs0309.cs new file mode 100644 index 00000000000..68bcbbd18df --- /dev/null +++ b/mcs/errors/gcs0309.cs @@ -0,0 +1,25 @@ +// CS0309: The type 'B' must be convertible to 'A' in order to use it as +// parameter 'T' in the generic type or method 'Foo<T>' +// Line: 20 + +public class Foo<T> + where T : A +{ +} + +public class A +{ +} + +public class B +{ +} + +class X +{ + Foo<B> foo; + + static void Main () + { + } +} |