a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
401 B
C#
30 lines
401 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
public class AmbiguousGeneric
|
|
{
|
|
public async void NestedVoidTestSuccess ()
|
|
{
|
|
await Run2 (async () => await ReturnOne ());
|
|
}
|
|
|
|
static Task<int> ReturnOne ()
|
|
{
|
|
return Task.Run (() => 1);
|
|
}
|
|
|
|
Task Run2 (Func<Task> arg)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
Task Run2<T> (Func<T> arg)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
}
|
|
} |