linux-packaging-mono/mcs/tests/test-tuple-08.cs

24 lines
304 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
class X
{
public static void Main ()
{
var x = new X ();
x.Test ().Wait ();
}
int a, b;
async Task Test ()
{
(a, b) = await Waiting ();
}
Task<(int, int)> Waiting ()
{
return Task.FromResult ((1, 3));
}
}