[System.Runtime.Remoting] Adds System.Core reference for tests
[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: 13
3
4 using System;
5 using System.Collections;
6 using System.Threading.Tasks;
7
8 class C
9 {
10         public async void Test ()
11         {
12                 int i = 2;
13                 TypedReference tr = __makeref (i);
14                 await Task.Factory.StartNew (() => 6);
15         }
16 }