[cominterop] Default to [in] parameter direction when not specified explicitly.
[mono-project.git] / mcs / errors / cs4012-3.cs
blobfb3d1dc276fdbe849e25280b7b00c1cc1c179d85
1 // CS4012: Parameters or local variables of type `S' cannot be declared in async methods or iterators
2 // Line: 16
3 // Compiler options: -langversion:latest
5 using System;
6 using System.Threading.Tasks;
8 public ref struct S
12 class C
14 public async void Test ()
16 var tr = new S ();
17 await Task.Factory.StartNew (() => 6);