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

44 lines
492 B
C#

using System;
using System.Linq;
namespace Test
{
class S<T>
{
public S ()
{
}
public string Where (Func<C, string> cexpr)
{
return String.Empty;
}
}
class C
{
}
static class Extension
{
public static string Is (this C c)
{
return null;
}
}
class Program
{
public static void Main ()
{
var value = new S<int> ();
var e = from item in value
where item.Is ()
select item;
var foo = value.Where (p => p.Is ());
}
}
}