[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs4008.cs
blobf382fa49a6eba822307e5f372fa11a06db180ef0
1 // CS4008: Cannot await void method `X.Foo()'. Consider changing method return type to `Task'
2 // Line: 10
4 using System.Threading.Tasks;
6 class X
8 static async void Test ()
10 await Foo ();
13 static async void Foo ()
15 await Task.FromResult (1);