[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git] / mcs / errors / cs1667-2.cs
blob5fee50900839b76d4b28e1f3ae51a5154f6fcd71
1 // 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
2 // Line: 14
4 class Test {
5 public static bool Error {
6 [System.Obsolete] set {
11 class MainClass {
12 public static void Main () {
13 Test.Error = false;