[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0445-2.cs
blobfa699a17789e8694803dcb8f128b11631caa6d3e
1 // CS0445: Cannot modify the result of an unboxing conversion
2 // Line: 10
4 struct S
6 public int val { set {} }
8 public void Do (object o)
10 ((S)o).val = 4;