summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0219-6.cs
blob: a5246cdd8dfbe2b795a521b9605c700bf6c0fa51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0219: The variable `i' is assigned but its value is never used
// Line: 14
// Compiler options: -warn:3 -warnaserror

using System.Collections.Generic;

class C
{
	IEnumerable<int> Test ()
	{
		try {
			yield return 1;
		} finally {
			int i = 100;
		}
	}
}