Merge pull request #121 from LogosBible/processfixes
[mono.git] / mcs / errors / cs1996.cs
1 // CS1996: The `await' operator cannot be used in the body of a lock statement
2 // Line: 12
3 // Compiler options: -langversion:future
4
5 using System;
6 using System.Threading.Tasks;
7
8 class C
9 {
10         public async Task Test ()
11         {
12                 lock (this) {
13                         await Call ();
14                 }
15         }
16         
17         static Task Call ()
18         {
19                 return null;
20         }
21 }