1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

More extern constraints work

This commit is contained in:
Brian Fiete 2020-08-10 17:02:48 -07:00
parent d35ef0e1e8
commit 35505d905a
7 changed files with 34 additions and 10 deletions

View file

@ -443,7 +443,7 @@ namespace System
return 0;
}
/*public static int Sign<T>(T value) where int : operator T <=> T, ICanBeNaN
public static int Sign<T>(T value) where int : operator T <=> T where T : ICanBeNaN
{
if (value < default)
return -1;
@ -453,7 +453,7 @@ namespace System
return 0;
Runtime.FatalError("Cannot be used on NaN");
}*/
}
public static int32 DivRem(int32 a, int32 b, out int32 result)
{