[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0163.cs
1 // CS0163: Control cannot fall through from one case label `case 1:' to another
2 // Line: 14
3
4 using System;
5 using System.Collections.Generic;
6
7 static class C
8 {
9         public static IEnumerable<int> Test (int key)
10         {
11                 switch (key) {
12                 case 1:
13                         yield return 0;
14                 case 2:
15                         yield return 2;
16                 default:
17                         throw new ArgumentOutOfRangeException ("symbol:" + key);
18                 }
19         }
20 }