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

using System;
using System.Threading.Tasks;

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