Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1612-9.cs
1 // CS1612: Cannot modify a value type return value of `R.Size'. Consider storing the value in a temporary variable
2 // Line: 19
3
4 struct R
5 {
6         public S Size { get; set; }
7 }
8
9 struct S
10 {
11         public float Height { get; set; }
12 }
13
14 public class Test
15 {
16         public static void Main ()
17         {
18                 var r = new R ();
19                 r.Size.Height = 3;
20         }
21 }