You've already forked linux-packaging-mono
Imported Upstream version 5.12.0.220
Former-commit-id: c477e03582759447177c6d4bf412cd2355aad476
This commit is contained in:
parent
8bd104cef2
commit
8fc30896db
24
mcs/tests/test-tuple-08.cs
Normal file
24
mcs/tests/test-tuple-08.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user