[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / errors / cs0163.cs
blobdfdd9c122507d2609fd4907924418f57372fa945
1 // CS0163: Control cannot fall through from one case label `case 1:' to another
2 // Line: 14
4 using System;
5 using System.Collections.Generic;
7 static class C
9 public static IEnumerable<int> Test (int key)
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);