Remove code moved to shared partition
[mono-project.git] / mcs / errors / cs1612-8.cs
blobde20870c2dfe2bd1c0733a8edd35e5b9a9f9cd4a
1 // CS1612: Cannot modify a value type return value of `Test.v(bool)'. Consider storing the value in a temporary variable
2 // Line: 28
4 public struct V
6 public int this [int i] {
7 set {
11 public int x;
14 class Test
16 V m_value;
18 public static V v(bool b) { return new V (); }
20 public Test ()
22 m_value = new V ();
25 public static void Main ()
27 Test t = new Test ();
28 Test.v(true).x = 9;