2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / gcs1918.cs
blob245d6bef89a99f165e462f28ddccd2653071497e
1 // CS1918: Members of value type `S' cannot be assigned using a property `C.Value' object initializer
2 // Line: 18
5 struct S
7 public int X;
10 class C
12 public S Value {
13 set { }
16 static void Main ()
18 C c = new C { Value = { X = 2 } };