Merge pull request #249 from pcc/xgetinputfocus
[mono.git] / mcs / errors / cs0219-6.cs
1 // CS0219: The variable `i' is assigned but its value is never used
2 // Line: 14
3 // Compiler options: -warn:3 -warnaserror
4
5 using System.Collections.Generic;
6
7 class C
8 {
9         IEnumerable<int> Test ()
10         {
11                 try {
12                         yield return 1;
13                 } finally {
14                         int i = 100;
15                 }
16         }
17 }