[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-lambda-33.cs
blob51f8cb717700d8ada4bfae4eefdd3ab2ecea7371
1 // Compiler options: -warnaserror
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
7 public enum SomeEnum
9 A = 1,
10 B = 2,
13 public class EnumSwitch
15 public object SomeFunction<T> (SomeEnum endRole, object parent, IQueryable<T> input)
17 switch (endRole) {
18 case SomeEnum.A:
19 return input.Where (i => i != null);
20 default:
21 throw new NotImplementedException ();
25 public static void Main ()