diff options
Diffstat (limited to 'mcs/errors/cs1632-4.cs')
-rw-r--r-- | mcs/errors/cs1632-4.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/errors/cs1632-4.cs b/mcs/errors/cs1632-4.cs new file mode 100644 index 0000000000..a9127d5339 --- /dev/null +++ b/mcs/errors/cs1632-4.cs @@ -0,0 +1,22 @@ +// CS1632: Control cannot leave the body of an anonymous method +// Line: 14 + +using System; + +class X +{ + public static void Main () + { + int b = 0; + switch (b) { + case 1: + Action a = () => { + goto case 2; + }; + + break; + case 2: + break; + } + } +} |