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:
authorMarek Safar <marek.safar@gmail.com>2004-09-01 21:55:44 +0400
committerMarek Safar <marek.safar@gmail.com>2004-09-01 21:55:44 +0400
commitc13aaee158a12577541cc1f5b31d5bebebdd396f (patch)
tree04be57e7c3d5c56cba2856249e1f34c0622def13 /mcs/errors/cs0722-2.cs
parentfe58636b54074d393f912df7f7e02719aeb4a5bb (diff)
2004-09-01 Marek Safar <marek.safar@seznam.cz>
* 20 new tests mainly for static classes. svn path=/trunk/mcs/; revision=33168
Diffstat (limited to 'mcs/errors/cs0722-2.cs')
-rw-r--r--mcs/errors/cs0722-2.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs0722-2.cs b/mcs/errors/cs0722-2.cs
new file mode 100644
index 00000000000..0b17f530ffa
--- /dev/null
+++ b/mcs/errors/cs0722-2.cs
@@ -0,0 +1,13 @@
+// cs0722.cs: 'StaticClass': static types cannot be used as return types
+// Line: 8
+
+static class StaticClass {
+}
+
+class MainClass {
+ public static StaticClass Prop {
+ get {
+ return null;
+ }
+ }
+}