Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs4012.cs
blob81c9fcdabb7dc56c213955e70703324b9a4bd00a
1 // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators
2 // Line: 13
4 using System;
5 using System.Collections;
6 using System.Threading.Tasks;
8 class C
10 public async void Test ()
12 int i = 2;
13 TypedReference tr = __makeref (i);
14 await Task.Factory.StartNew (() => 6);