Files
mono/mcs/errors/cs1612.cs
T
Marek Safar 4788322f89 New test, update
svn path=/trunk/mcs/; revision=89101
2007-11-07 13:43:35 +00:00

26 lines
330 B
C#

// CS1612: Cannot modify a value type return value of `X.P'. Consider storing the value in a temporary variable
// Line: 9
using System;
class X {
static void Main ()
{
P.x += 10;
Console.WriteLine ("Got: " + P.x);
}
static G P {
get {
return g;
}
}
static G g = new G ();
struct G {
public int x;
}
}