Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-591.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a4dbbc68ede78b3a5251c767a6622b6c73dde4c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// It's actually C# specification and csc bug
// https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=310363

class C1
{
	static void Foo (string val)
	{
		const object obj = null;
		switch (val) {
			case (string) obj:
				return;
		}
	}
}

class C2
{
	public static void Main ()
	{
		const object o = null;
		const string s = (string) o;
	}
}