2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / errors / cs1667-2.cs
1 // cs1667.cs: 'System.Obsolete' 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.
2 // Line: 14
3
4 class Test {
5         public static bool Error {
6             [System.Obsolete] set {
7             }
8         }
9 }
10
11 class MainClass {
12         public static void Main () {
13                 Test.Error = false;
14         }
15 }