Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs1918.cs
blobb1f325420156192360dd2b3e8513015a706284fe
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; get;
16 static void Main ()
18 C c = new C { Value = { X = 2 } };