Remove unnecessary !s for [DoesNotReturn] (dotnet/coreclr#26512)
[mono-project.git] / mcs / tests / test-721.cs
blob12d9f90a458c362a177b98e39d7b9f94674a0b05
1 using System;
2 using System.Reflection;
3 using System.Runtime.InteropServices;
5 class Program
7 public static int Main ()
9 Type t = typeof (Control);
10 MethodInfo m = t.GetMethod ("set_Foo");
12 if (m.GetParameters ()[0].Name != "value")
13 return 1;
15 return 0;
19 class Control
21 public virtual int Foo
23 [param: MarshalAs (UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof (int))]
24 set