mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
More tests
This commit is contained in:
parent
01d9bfb66f
commit
65d960a6e6
4 changed files with 90 additions and 0 deletions
|
@ -58,6 +58,34 @@ namespace LibA
|
|||
return Handle(val);
|
||||
}
|
||||
}
|
||||
|
||||
class LibA1
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
class LibA2
|
||||
{
|
||||
public static void DoDispose<T>(mut T val) where T : IDisposable
|
||||
{
|
||||
val.Dispose();
|
||||
}
|
||||
|
||||
public static bool DoDispose2<T>(mut T val) where T : var
|
||||
{
|
||||
return
|
||||
[IgnoreErrors(true)]
|
||||
{
|
||||
val.Dispose();
|
||||
true
|
||||
};
|
||||
}
|
||||
|
||||
public static bool CheckEq<T>(T lhs, T rhs)
|
||||
{
|
||||
return lhs == rhs;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class LibClassA
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue