2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1612-4.cs
blob45e5966fb9c819f157d401c2983811b2f240f115
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 bar (out P.x);
10 Console.WriteLine ("Got: " + P.x);
13 static void bar (out int x) { x = 10; }
15 static G P {
16 get {
17 return g;
21 static G g = new G ();
23 struct G {
24 public int x;