New test.
[mono.git] / mcs / errors / cs0445-2.cs
1 // cs0445.cs: Cannot modify the result of an unboxing conversion
2 // Line: 10
3
4 struct S
5 {
6     public int val { set {} }
7
8     public void Do (object o) 
9     {
10         ((S)o).val = 4;
11     }
12 }
13