[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs4033.cs
blob0371f89637c25ca18bbd81c40fd5a6ef8451304b
1 // CS4033: The `await' operator can only be used when its containing method is marked with the `async' modifier
2 // Line: 11
4 using System.Threading.Tasks;
6 class Tester
8 void Test ()
10 Task<int> x = null;
11 var a = await x;