017663141509aba896c6241de44ce8b26f79b796
[mono.git] / mcs / errors / cs4012.cs
1 // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators
2 // Line: 11
3 // Compiler options: -langversion:future
4
5 using System;
6 using System.Collections;
7 using System.Threading.Tasks;
8
9 class C
10 {
11         public async void Test ()
12         {
13                 int i = 2;
14                 TypedReference tr = __makeref (i);
15                 await Task.Factory.StartNew (() => 6);
16         }
17 }