[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / gtest-340.cs
blob25077db5edaa7984a6c0952b44ff0c6db813f3a8
1 using System;
2 using System.IO;
3 using System.Reflection;
5 class Tests
7 public static T [] FindAll<T> (T [] array, Predicate<T> match)
9 return new T [0];
12 private bool ProtectedOnly (MemberInfo input)
14 return false;
17 public MemberInfo [] foo ()
19 string name = "FOO";
20 MemberInfo [] res = FindAll (typeof (int).GetMember (name,
21 BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic),
22 ProtectedOnly);
23 return res;
26 public static void Main (String [] args)
28 new Tests ().foo ();