summaryrefslogtreecommitdiff
path: root/mcs/errors/cs4012-2.cs
blob: 206c89aee27f87dff2120ed3e6415ac044c82203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators
// Line: 9

using System;
using System.Collections;

class C
{
	public IEnumerable Iter ()
	{
		int i = 2;
		TypedReference tr = __makeref (i);
		yield return 1;
	}
}