diff options
author | Martin Baulig <martin@novell.com> | 2004-03-31 05:46:15 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-03-31 05:46:15 +0400 |
commit | e2fa92cd3e96c4e0a0d62be2ef2c6a7ee3ab2054 (patch) | |
tree | 68b0630fec69beaeca1eb9dc1adf51a76d149ecc /mcs/errors/gcs0304.cs | |
parent | 055d1b119da77206002063cf9a446b8ed56a2bef (diff) |
More tests ....
svn path=/trunk/mcs/; revision=24823
Diffstat (limited to 'mcs/errors/gcs0304.cs')
-rw-r--r-- | mcs/errors/gcs0304.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/gcs0304.cs b/mcs/errors/gcs0304.cs new file mode 100644 index 00000000000..4eb1d929da7 --- /dev/null +++ b/mcs/errors/gcs0304.cs @@ -0,0 +1,18 @@ +// CS0304: Cannot create an instance of the variable type 'T' because it +// doesn't have the new() constraint +// Line: 9 + +public class Foo<T> +{ + public T Create () + { + return new T (); + } +} + +class X +{ + static void Main () + { + } +} |