Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

90 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
namespace Test1
{
public static class Test
{
public static IEnumerable<T> Replace<T> ()
{
yield break;
}
}
}
namespace Test2
{
public class Test<S>
{
public static IEnumerable<T> Replace<T> ()
{
yield break;
}
}
}
namespace Test3
{
public class Test<S>
{
public static IEnumerable<KeyValuePair<S,T>> Replace<T> (IEnumerable<T> a,
IEnumerable<S> b)
{
yield break;
}
}
}
namespace Test4
{
public class Test
{
public static IEnumerable<T> Replace<T> ()
where T : class
{
yield break;
}
}
}
namespace Test5
{
public class Test
{
public static IEnumerable<T> Replace<T> (T t)
{
yield return t;
}
}
}
namespace Test6
{
public class Test
{
public static IEnumerable<T> Replace<T> (T t)
{
T u = t;
yield return u;
}
}
}
namespace Test7
{
public class Test
{
public static IEnumerable<T[]> Replace<T> (T[] t)
{
T[] array = t;
yield return array;
}
}
}
class X
{
public static void Main ()
{ }
}