Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git] / mcs / errors / cs1993.cs
blobe93ee681886591fb57bef21fcd13bdba88693099
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
5 using System.Threading.Tasks;
7 namespace System.Threading.Tasks
9 class Task<T>
14 static class S
16 public static A GetAwaiter (this int i)
18 return new A ();
22 class A
24 bool IsCompleted {
25 get {
26 return true;
30 void OnCompleted (System.Action a)
34 int GetResult ()
36 return 3;
39 static async Task<int> Test ()
41 return await 2;