summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0469.cs
blob: eac14b77a728505ad3e93eb32457ed48e2cced31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0469: The `goto case' value is not implicitly convertible to type `char'
// Line: 16
// Compiler options: -warnaserror -warn:2

class Test
{
	static void Main()
	{
		char c = 'c';
		switch (c)
		{
			case 'A':
				break;

			case 'a': 
				goto case 65;
		}
	}
}