<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1667</ErrorName>
  <Examples>
    <string>// 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: 11

using System;
using System.Diagnostics;

class Class1 
{
        public event ResolveEventHandler G {
            [CLSCompliant(false)]
            add {}
            remove {}
	}
}

</string>
    <string>// CS1667: Attribute `System.Diagnostics.ConditionalAttribute' is not valid on property or event accessors. It is valid on `method' declarations only
// GMCS1667: Attribute `System.Diagnostics.ConditionalAttribute' is not valid on property or event accessors. It is valid on `class, method' declarations only
// Line: 11

using System;
using System.Diagnostics;

class Class1 
{
        public int G {
            [Conditional("DEBUG")]
            get {
                    return 1;
            }
	}
}
</string>
    <string>// 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 Test {
        public static bool Error {
            [System.CLSCompliant (true)] get {
                return false;
            }
        }
}

class MainClass {
        public static void Main () {
                System.Console.WriteLine (Test.Error);
        }
}</string>
    <string>// CS1667: Attribute `System.ObsoleteAttribute' is not valid on property or event accessors. It is valid on `class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations only
// Line: 14

class Test {
        public static bool Error {
            [System.Obsolete] set {
            }
        }
}

class MainClass {
        public static void Main () {
                Test.Error = false;
        }
}</string>
    <string>// 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: 8

using System;

public interface X {
  [method:CLSCompliant (false)]
  event EventHandler XEvent;
}
</string>
  </Examples>
</ErrorDocumentation>