linux-packaging-mono/mcs/tests/test-tuple-08.cs
Xamarin Public Jenkins (auto-signing) 8fc30896db Imported Upstream version 5.12.0.220
Former-commit-id: c477e03582759447177c6d4bf412cd2355aad476
2018-04-24 09:31:23 +00:00

24 lines
304 B
C#

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));
}
}