linux-packaging-mono/mcs/tests/test-async-92.cs
Xamarin Public Jenkins (auto-signing) 966bba02bb Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
2017-06-07 13:16:24 +00:00

23 lines
305 B
C#

using System.Threading.Tasks;
public class A
{
public async Task<ValueType> Test1 (int input2)
{
return new ValueType (await Task.FromResult (12345));
}
public static void Main ()
{
var a = new A ();
a.Test1 (1).Wait ();
}
}
public struct ValueType
{
public ValueType (int field2)
{
}
}