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:
Diffstat (limited to 'mcs/errors/cs1570-11.cs')
-rwxr-xr-xmcs/errors/cs1570-11.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/mcs/errors/cs1570-11.cs b/mcs/errors/cs1570-11.cs
new file mode 100755
index 00000000000..1adf424e2bb
--- /dev/null
+++ b/mcs/errors/cs1570-11.cs
@@ -0,0 +1,54 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+
+ /// <summary>
+ /// comment for public property
+ /// </summary>
+ public string PublicProperty {
+ /// <summary>
+ /// On public getter - no effect
+ /// </summary>
+ get { return null; }
+ /// <summary>
+ /// On public setter - no effect
+ /// </summary>
+ set { }
+ }
+
+ /// <summary>
+ /// incorrect comment for public property
+ /// </incorrect>
+ public string PublicProperty2 {
+ get { return null; }
+ }
+
+ /**
+ <summary>
+ Javadoc comment for public property
+ </summary>
+ */
+ public string PublicProperty3 {
+ /**
+ <summary>
+ On public getter - no effect
+ </summary>
+ */
+ get { return null; }
+ /**
+ <summary>
+ On public setter - no effect
+ </summary>
+ */
+ set { }
+ }
+ }
+}
+