[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / test-285.cs
blobc49949b239ac575543d245d6b734788fd7c941be
1 class Test
3 static int test1 ()
5 var s = "Nice";
6 switch (s) {
7 case "HI":
8 const string x = "Nice";
9 return 1;
10 case x:
11 return 2;
14 return 3;
17 public const string xx = "Not";
18 static int test2 ()
20 var s = "Nice";
21 switch (s) {
22 case "HI":
23 const string xx = "Nice";
24 return 1;
25 case xx:
26 return 2;
29 return 3;
32 static int Main ()
34 if (test1 () != 2)
35 return 1;
37 if (test2 () != 2)
38 return 2;
40 return 0;