[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-anon-150.cs
blob389bc7bc44d806064883035d900936ebb75966cf
1 class M
3 public static int Main ()
5 new SomeGenericClass<int>().FailsToCompile ();
6 return 0;
10 class SomeGenericClass<SomeType>
12 object someValue;
13 delegate void SomeHandlerType ();
15 void Invoke (SomeHandlerType h)
17 h ();
20 public void FailsToCompile ()
22 Invoke (delegate {
23 object someObject = 1;
24 Invoke (delegate {
25 someValue = someObject;
26 });
27 });