Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1993.cs
1 // CS1993: Cannot find compiler required types for asynchronous functions support. Are you targeting the wrong framework version?
2 // Line: 38
3 // Compiler options: -nostdlib CS1993-corlib.cs
4
5 using System.Threading.Tasks;
6
7 namespace System.Threading.Tasks
8 {
9         class Task<T>
10         {
11         }
12 }
13
14 static class S
15 {
16         public static A GetAwaiter (this int i)
17         {
18                 return new A ();
19         }
20 }
21
22 class A
23 {
24         bool IsCompleted {
25                 get {
26                         return true;
27                 }
28         }
29         
30         void OnCompleted (System.Action a)
31         {
32         }
33         
34         int GetResult ()
35         {
36                 return 3;
37         }
38         
39         static async Task<int> Test ()
40         {
41                 return await 2;
42         }
43 }