2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / cs1612-2.cs
blobe7e0d7fb44f8094fbad108ec6080f5beced57a8d
1 // cs1612-2.cs: Cannot modify the return value of `X.P' because it is not a variable
2 // Line: 9
4 using System;
5 class X {
6 static void Main ()
9 P.x = 10;
10 Console.WriteLine ("Got: " + P.x);
13 static G P {
14 get {
15 return g;
19 static G g = new G ();
21 struct G {
22 public int x;