blob: 81c9fcdabb7dc56c213955e70703324b9a4bd00a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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 (() => 6);
}
}
|