One line typo bug which passed unoticed on previous commit.
[mono.git] / mcs / errors / cs1667.cs
index 90b8b3ef85d102620ee379b7b3d3068c02873972..1adf5682037f3484bdf4589ae71059f4d47de929 100644 (file)
@@ -1,13 +1,17 @@
-// cs1677: out parameters are not permitted on anonymous delegate declarations.
-// Line: 11
-//
-// The delegate has an explicit signature, so it can not be assigned.
-//
-delegate void D (int x);
+// CS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return' declarations only
+// GMCS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations only
+// Line: 15
 
-class X {
-       static void Main ()
-       {
-               D d2 = delegate (out int x) {};
-       }
+class Test {
+        public static bool Error {
+            [System.CLSCompliant (true)] get {
+                return false;
+            }
+        }
 }
+
+class MainClass {
+        public static void Main () {
+                System.Console.WriteLine (Test.Error);
+        }
+}
\ No newline at end of file