summaryrefslogtreecommitdiff
path: root/mcs/errors/cs4004.cs
blob: 7e88a0ff71e5296167856cdffeb62f6cde2c0440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS4004: The `await' operator cannot be used in an unsafe context
// Line: 12
// Compiler options: -unsafe

using System;
using System.Threading.Tasks;

class C
{
	public async Task Test ()
	{
		unsafe {
			await Call ();
		}
	}
	
	static Task Call ()
	{
		return null;
	}
}