1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 08:30:25 +02:00
Beef/IDE/mintest/minlib/src/System/TClass.bf
2020-08-12 15:56:50 -07:00

21 lines
No EOL
276 B
Beef

#pragma warning disable 168
using System;
interface IItem
{
public int Id { get; set; }
}
class Mintesto
{
public static void Dispose<T>(mut T val) where T : IDisposable
{
val.Dispose();
}
public static int Get<T>(mut T val) where T : IItem
{
return val.Id;
}
}