summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0445-2.cs
blob: fa699a17789e8694803dcb8f128b11631caa6d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS0445: Cannot modify the result of an unboxing conversion
// Line: 10

struct S
{
	public int val { set {} }

	public void Do (object o) 
	{
		((S)o).val = 4;
	}
}