[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / errors / cs8178-2.cs
blobe61b7d9eb5c4fffaf7c7d7bae4a40fe94b387a70
1 // CS8178: `await' cannot be used in an expression containing a call to `X.this[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 this [await Task.FromResult (1)]);
15 ref int this [int arg] => ref x;
17 static void Foo (ref int arg)