Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs4004.cs
1 // CS4004: The `await' operator cannot be used in an unsafe context
2 // Line: 12
3 // Compiler options: -unsafe
4
5 using System;
6 using System.Threading.Tasks;
7
8 class C
9 {
10         public async Task Test ()
11         {
12                 unsafe {
13                         await Call ();
14                 }
15         }
16         
17         static Task Call ()
18         {
19                 return null;
20         }
21 }