You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
22
mcs/tests/test-async-92.cs
Normal file
22
mcs/tests/test-async-92.cs
Normal file
@ -0,0 +1,22 @@
|
||||
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)
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user