[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git] / mcs / errors / cs0126-3.cs
blob5d0052d776ef0b75020d0b8513aa80ff52f32f70
1 // CS0126: An object of a type convertible to `int' is required for the return statement
2 // Line: 15
4 using System.Threading.Tasks;
6 class MainClass
8 public static void Main ()
10 Task<C> v = null;
12 Task.Run (async () => {
13 await Task.Yield ();
14 if (v == null) {
15 return;
18 return 1;
19 });
23 public class C
25 string Id { get; set; }