2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1612-2.cs
blobb4f075c267ba61fd31f1edc26ae58844172df18d
1 // CS1612: Cannot modify a value type return value of `X.P'. Consider storing the value in a temporary 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;