[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git] / mcs / errors / cs1997.cs
blobbcceb7e1576efd6a711d78b8916021d06f24800f
1 // CS1997: `C.Test()': A return keyword must not be followed by an expression when async method returns `Task'. Consider using `Task<T>' return type
2 // Line: 12
4 using System;
5 using System.Threading.Tasks;
7 class C
9 public async Task Test ()
11 await Call ();
12 return null;
15 static Task Call ()
17 return null;