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:
parent
07bb71150d
commit
97d7324874
1 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue