summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0283-2.cs
blob: 761563e1bb6c803fb0dd38b35408b70dd93a3ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0283: The type `S' cannot be declared const
// Line: 12

struct S
{
}

class C
{
	public void Foo ()
	{
		const S s = new S();
	}
}