1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 16:40:26 +02:00
Beef/IDE/mintest/minlib/src/System/TClass.bf
2020-05-22 06:40:06 -07:00

26 lines
No EOL
343 B
Beef

#pragma warning disable 168
using System;
interface IItem
{
public int Id { get; set; }
}
class Mintesto
{
public static T Alloc<T>() where T : new
{
return new T();
}
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;
}
}