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

More tests

This commit is contained in:
Brian Fiete 2020-08-16 08:31:26 -07:00
parent 01d9bfb66f
commit 65d960a6e6
4 changed files with 90 additions and 0 deletions

View file

@ -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