dlr bug
[mcs.git] / tests / gtest-linq-14.cs
blobe0213b73bf4eb592c87302b0dbc78dbd06f5930a
1 using System;
2 using System.Collections.Generic;
3 using System.Linq.Expressions;
5 public enum Style : ulong {
6 Foo,
7 Bar,
10 public class Person {
11 public Style Style { get; set; }
14 public interface IObjectContainer {}
16 public static class Extensions {
18 public static IMarker<T> Cast<T> (this IObjectContainer container)
20 return null;
23 public static IMarker<T> Where<T> (this IMarker<T> marker, Expression<Func<T, bool>> selector)
25 return null;
29 public interface IMarker<T> : IEnumerable<T> {}
31 public class Program {
33 static void Main ()
37 public static void Assert (Action a)
41 public static void Test (IObjectContainer o, Style s)
43 Assert (delegate {
44 var res = from Person p in o
45 where 0 == s
46 select p;
47 });