1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 07:14:09 +02:00

Test updates

This commit is contained in:
Brian Fiete 2020-05-22 06:40:06 -07:00
parent adbae6f1d4
commit 639430b41c
7 changed files with 73 additions and 29 deletions

View file

@ -2,25 +2,25 @@
using System;
class Foogie<T> where T : IHashable
interface IItem
{
public void Do()
{
T val = default;
val.GetHashCode();
}
public int Id { get; set; }
}
struct Zorbble
class Mintesto
{
public int mA;
public void MainMethod()
public static T Alloc<T>() where T : new
{
return new T();
}
static void Zoff()
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;
}
}