Skip to content

Commit b1754a0

Browse files
committed
INumber constraint
1 parent 37ad74f commit b1754a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public static partial class ExceptionAsDefaultMarshaller<T> where T : unmanaged
367367
public static T ConvertToUnmanaged(System.Exception e) { throw null; }
368368
}
369369
[System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<>))]
370-
public static partial class ExceptionAsHResultMarshaller<T> where T : unmanaged
370+
public static partial class ExceptionAsHResultMarshaller<T> where T : unmanaged, System.Numerics.INumber<T>
371371
{
372372
public static T ConvertToUnmanaged(System.Exception e) { throw null; }
373373
}

0 commit comments

Comments
 (0)