Author: marek
Date: 2005-03-18 08:32:27 -0500 (Fri, 18 Mar 2005)
New Revision: 41981
Added:
trunk/mcs/errors/cs0271.cs
trunk/mcs/errors/cs0272.cs
trunk/mcs/errors/gcs1716.cs
Modified:
trunk/mcs/errors/known-issues-gmcs
Log:
new tests
Added: trunk/mcs/errors/cs0271.cs
===================================================================
--- trunk/mcs/errors/cs0271.cs 2005-03-18 13:30:35 UTC (rev 41980)
+++ trunk/mcs/errors/cs0271.cs 2005-03-18 13:32:27 UTC (rev 41981)
@@ -0,0 +1,21 @@
+// cs0271.cs: The property or indexer 'P.Prop' cannot be used in this context
because the get accessor is inaccessible
+// Line: 19
+
+class P
+{
+ public static int Prop
+ {
+ private get {
+ return 4;
+ }
+ set {}
+ }
+}
+
+public class C
+{
+ public static int Main ()
+ {
+ return P.Prop;
+ }
+}
\ No newline at end of file
Added: trunk/mcs/errors/cs0272.cs
===================================================================
--- trunk/mcs/errors/cs0272.cs 2005-03-18 13:30:35 UTC (rev 41980)
+++ trunk/mcs/errors/cs0272.cs 2005-03-18 13:32:27 UTC (rev 41981)
@@ -0,0 +1,21 @@
+// cs0272.cs: The property or indexer 'P.Prop' cannot be used in this context
because the set accessor is inaccessible
+// Line: 19
+
+class P
+{
+ public static int Prop
+ {
+ get {
+ return 4;
+ }
+ private set {}
+ }
+}
+
+public class C
+{
+ public static void Main ()
+ {
+ P.Prop = 453422;
+ }
+}
\ No newline at end of file
Added: trunk/mcs/errors/gcs1716.cs
===================================================================
--- trunk/mcs/errors/gcs1716.cs 2005-03-18 13:30:35 UTC (rev 41980)
+++ trunk/mcs/errors/gcs1716.cs 2005-03-18 13:32:27 UTC (rev 41981)
@@ -0,0 +1,8 @@
+// cs1716.cs: Do not use 'System.Runtime.CompilerServices.FixedBuffer'
attribute. Use the 'fixed' field modifier instead
+// Line: 6
+
+public class C
+{
+ [System.Runtime.CompilerServices.FixedBuffer (typeof (int), 1)]
+ public int i;
+}
\ No newline at end of file
Modified: trunk/mcs/errors/known-issues-gmcs
===================================================================
--- trunk/mcs/errors/known-issues-gmcs 2005-03-18 13:30:35 UTC (rev 41980)
+++ trunk/mcs/errors/known-issues-gmcs 2005-03-18 13:32:27 UTC (rev 41981)
@@ -152,3 +152,6 @@
cs3003-5.cs
gcs0080.cs
gcs1644-2.cs NO ERROR
+cs0271.cs
+cs0272.cs
+gcs1716.cs NO ERROR
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches