diff options
author | Martin Baulig <martin@novell.com> | 2004-08-17 00:59:08 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-08-17 00:59:08 +0400 |
commit | 4f9284bcf13ec03bc91d42c68d50d7112c7f827d (patch) | |
tree | 226da1e242e8aa25b999cd011ff7286a04e7051e /mcs/errors/gcs0456.cs | |
parent | f3dedd8f25820ecdf16da232094fb3c7ae29e37a (diff) |
New tests.
svn path=/trunk/mcs/; revision=32400
Diffstat (limited to 'mcs/errors/gcs0456.cs')
-rw-r--r-- | mcs/errors/gcs0456.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/gcs0456.cs b/mcs/errors/gcs0456.cs new file mode 100644 index 00000000000..ee3394ad008 --- /dev/null +++ b/mcs/errors/gcs0456.cs @@ -0,0 +1,14 @@ +// CS0456: Type parameter `U' has the `struct' constraint, so it cannot be used as a constraint for `T' +// Line: 7 +using System; + +class Foo<T,U> + where T : U + where U : struct +{ } + +class X +{ + static void Main () + { } +} |