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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2006-06-21 19:54:07 +0400
committerMartin Baulig <martin@novell.com>2006-06-21 19:54:07 +0400
commit6411ba6fcb86afd66084fe4d312e2eefe477513b (patch)
tree8806dd35995b73f8cdc9cb0181ce0fd3fc53f884 /mcs/tests/test-49.cs
parenteed46496c09cec9bef24e49ac818b8ed284cd18d (diff)
2006-06-21 Martin Baulig <martin@ximian.com>
* statement.cs (GotoCase.Resolve): Report a warning (CS0469) instead of an error if the value is not implicitly convertible to the switch types; fixes #77964. svn path=/trunk/mcs/; revision=61909
Diffstat (limited to 'mcs/tests/test-49.cs')
-rw-r--r--mcs/tests/test-49.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/tests/test-49.cs b/mcs/tests/test-49.cs
index 284e1bdbab6..5053b40475f 100644
--- a/mcs/tests/test-49.cs
+++ b/mcs/tests/test-49.cs
@@ -530,6 +530,19 @@ class X {
break;
}
}
+
+ static void test_77964()
+ {
+ char c = 'c';
+ switch (c)
+ {
+ case 'A':
+ break;
+
+ case 'a':
+ goto case 65;
+ }
+ }
static int Main ()
{