diff options
author | Martin Baulig <martin@novell.com> | 2004-09-24 06:52:18 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-09-24 06:52:18 +0400 |
commit | 4aa24650014721496873147f59a04ce4df559a6e (patch) | |
tree | f4ad38aaa012c9130fda3438a4dd08475d6e4d09 /mcs/errors/gcs0403.cs | |
parent | 93fd2fcb922200632d49fb14030344f2a30209cf (diff) |
New test.
svn path=/trunk/mcs/; revision=34323
Diffstat (limited to 'mcs/errors/gcs0403.cs')
-rw-r--r-- | mcs/errors/gcs0403.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/gcs0403.cs b/mcs/errors/gcs0403.cs new file mode 100644 index 00000000000..46966e0f245 --- /dev/null +++ b/mcs/errors/gcs0403.cs @@ -0,0 +1,15 @@ +// CS0403: Cannot convert null to the type parameter `T' becaues it could be a value type. Consider using `default (T)' instead. +// Line: 7 +class Test<T> +{ + public T Null () + { + return null; + } +} + +class X +{ + static void Main () + { } +} |