diff options
author | Martin Baulig <martin@novell.com> | 2004-04-07 23:01:00 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-04-07 23:01:00 +0400 |
commit | 851d036da58ca8423c949d88a75c7185a82a98bd (patch) | |
tree | 56a414546ad0c4e412230181530d0cf533766fd9 /mcs/errors/gcs0453.cs | |
parent | a0c6e79318eee8cd033faf5287c7c12f33d9f0c2 (diff) |
New tests.
svn path=/trunk/mcs/; revision=25182
Diffstat (limited to 'mcs/errors/gcs0453.cs')
-rw-r--r-- | mcs/errors/gcs0453.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/gcs0453.cs b/mcs/errors/gcs0453.cs new file mode 100644 index 00000000000..b6cd6cd13ad --- /dev/null +++ b/mcs/errors/gcs0453.cs @@ -0,0 +1,14 @@ +// CS0453: The type `X' must be a value type in order to use it as type +// parameter `T' in the generic type or method `MyValue<T>'. +// Line: 10 +public class MyValue<T> + where T : struct +{ } + +class X +{ + MyValue<X> x; + + static void Main () + { } +} |