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

29 lines
412 B
C#

using System;
using System.Threading.Tasks;
class C
{
static void M (int x, int y = 1)
{
}
static void M<T> (T x, int y = 2)
{
throw new ApplicationException ();
}
static void M2<T, U> (T u, Func<T, U> c, int y = 1)
{
throw new ApplicationException ();
}
static void M2<T, U> (T u, Func<T, Task<U>> c, int y = 2)
{
}
static void Main ()
{
M (1);
M2 (1, s => Task.FromResult (s));
}
}