Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2004-09-24 06:52:18 +0400
committerMartin Baulig <martin@novell.com>2004-09-24 06:52:18 +0400
commit4aa24650014721496873147f59a04ce4df559a6e (patch)
treef4ad38aaa012c9130fda3438a4dd08475d6e4d09 /mcs/errors/gcs0403.cs
parent93fd2fcb922200632d49fb14030344f2a30209cf (diff)
New test.
svn path=/trunk/mcs/; revision=34323
Diffstat (limited to 'mcs/errors/gcs0403.cs')
-rw-r--r--mcs/errors/gcs0403.cs15
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 ()
+ { }
+}