1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed fail test

This commit is contained in:
Brian Fiete 2021-01-04 13:57:28 -08:00
parent 07bb71150d
commit 97d7324874

View file

@ -6,9 +6,9 @@ namespace System
{
extension Array1<T>
{
public static bool operator==(Self lhs, Self rhs) where T : IOpEquals
public static Self operator+(Self lhs, Self rhs) where T : IDisposable
{
return true;
return lhs;
}
}
}
@ -29,12 +29,12 @@ namespace IDETest
public void Method3<TFoo>(ref TFoo[] val)
{
bool eq = val == val; //FAIL Generic argument 'T', declared to be 'TFoo' for 'TFoo[].operator==(TFoo[] lhs, TFoo[] rhs)', must implement 'System.IOpEquals'
var res = val + val; //FAIL
}
public void Method4()
public void Method4<TFoo>(ref TFoo[] val) where TFoo : IDisposable
{
var res = val + val;
}
interface IFaceA<T>