Beef
Beef copied to clipboard
const T generic argument when T is signed requires 'const' keyword when value is negative.
public struct MyStruct<T> where T : const int
{
...
}
MyStruct<-1> a; //error
MyStruct<const -1> b; //ok
MyStryct<1> c; //ok