linux-packaging-mono/mcs/tests/test-async-41.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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 ()
{
}
}