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:
authorMiguel de Icaza <miguel@gnome.org>2002-11-06 01:02:43 +0300
committerMiguel de Icaza <miguel@gnome.org>2002-11-06 01:02:43 +0300
commit06f2050e3c285892a3d84664fbee64a5c82afced (patch)
treec20c18b7891f3b8b5862f38f4a8a67de5cc4a73f /mcs/errors/cs0037.cs
parent79d952aaf9f6652e53e08d1e26fc76ca472ebd05 (diff)
Add new test
svn path=/trunk/mcs/; revision=8841
Diffstat (limited to 'mcs/errors/cs0037.cs')
-rw-r--r--mcs/errors/cs0037.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs0037.cs b/mcs/errors/cs0037.cs
new file mode 100644
index 00000000000..32d0b542e9f
--- /dev/null
+++ b/mcs/errors/cs0037.cs
@@ -0,0 +1,12 @@
+//cs0037.cs: Can not convert null to struct because its a value type
+// Line: 10
+struct S {
+ int a;
+}
+
+class X {
+ static void Main ()
+ {
+ S s = (S) null;
+ }
+}