<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS4012</ErrorName>
  <Examples>
    <string>// 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;
	}
}
</string>
    <string>// CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators
// Line: 13

using System;
using System.Collections;
using System.Threading.Tasks;

class C
{
	public async void Test ()
	{
		int i = 2;
		TypedReference tr = __makeref (i);
		await Task.Factory.StartNew (() =&gt; 6);
	}
}
</string>
  </Examples>
</ErrorDocumentation>