New test.
[mono.git] / mcs / errors / cs0120-4.cs
1 // cs0120-4.cs: `X.Y': An object reference is required for the nonstatic field, method or property
2 // Line: 11
3
4 using System;
5
6 class X {
7         // Public properties and variables.
8         public string Y;
9
10         // Constructors.
11         public X()
12         {
13         }
14
15         // Public static methods.
16         public static void Main(string[] Arguments)
17         {
18                 X.Y = "";
19         }
20 }
21
22
23
24
25
26