2005-06-29 Jonathan Chambers <jonathan.chambers@ansys.com>
[mcs.git] / errors / cs1612-4.cs
bloba0e6c995dd1287d5add8ef0b6e690b841cf1a5ac
1 // cs1612-4.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 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;