6992685b86
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
22 lines
389 B
C#
22 lines
389 B
C#
using System.Threading.Tasks;
|
|
|
|
class X
|
|
{
|
|
public async Task ReturnsTaskAsync (Task task)
|
|
{
|
|
await task;
|
|
}
|
|
|
|
public async Task<Task> ReturnsTaskOfTaskAsync ()
|
|
{
|
|
var t1 = Task.FromResult (ReturnsTaskAsync (null));
|
|
await t1;
|
|
Task<Task> t2 = Task.FromResult (ReturnsTaskAsync (null));
|
|
return t2;
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
new X ().ReturnsTaskOfTaskAsync ().Wait ();
|
|
}
|
|
} |