[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / errors / cs8178.cs
blob6f7796215701861bf0218cbc5c27df3f0a44a505
1 // CS8178: `await' cannot be used in an expression containing a call to `X.Wrap(int)' because it returns by reference
2 // Line: 12
4 using System.Threading.Tasks;
6 class X
8 int x;
10 async Task Test ()
12 Foo (ref Wrap (await Task.FromResult (1))) = 4;
15 ref int Wrap (int arg)
17 return ref x;
20 static ref int Foo (ref int arg)
22 return ref arg;