In ilasm/tests:
[mcs.git] / errors / cs1667.cs
blobf90986ef44a5d5009ca9ab814b846778bf781d0e
1 // cs1667.cs: 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
2 // Line: 14
4 class Test {
5 public static bool Error {
6 [System.CLSCompliant (true)] get {
7 return false;
12 class MainClass {
13 public static void Main () {
14 System.Console.WriteLine (Test.Error);