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/gcs0417.cs | |
parent | 055d1b119da77206002063cf9a446b8ed56a2bef (diff) |
More tests ....
svn path=/trunk/mcs/; revision=24823
Diffstat (limited to 'mcs/errors/gcs0417.cs')
-rw-r--r-- | mcs/errors/gcs0417.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/gcs0417.cs b/mcs/errors/gcs0417.cs new file mode 100644 index 00000000000..a68f30598b7 --- /dev/null +++ b/mcs/errors/gcs0417.cs @@ -0,0 +1,18 @@ +// CS0417: 'T': Cannot provide arguments when creating an instance of a variable type +// Line: 9 + +public class Foo<T> + where T : new () +{ + public T Create () + { + return new T (8); + } +} + +class X +{ + static void Main () + { + } +} |