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

Mintest changes

This commit is contained in:
Brian Fiete 2020-09-07 05:53:40 -07:00
parent 4f5a981598
commit 03c28503c6
7 changed files with 94 additions and 64 deletions

View file

@ -239,8 +239,6 @@ namespace Hey.Dude.Bro
public static int Main(String[] args)
{
//Test2(1, 2, 3, 4);
Blurg.Hey();
return 1;
}
@ -336,4 +334,4 @@ static
{
}
}*/
}*/

View file

@ -1,2 +1,32 @@
using System;
class Zaggle<T>
{
public int Capacity
{
get
{
return 0;
}
set
{
}
}
public void MethodA()
{
}
public void MethodB()
{
}
public void MethodC()
{
}
}

View file

@ -1,59 +1,26 @@
#pragma warning disable 168
//#pragma warning disable 168
using System;
using System.Diagnostics;
using System.Threading;
using System.Collections;
namespace SDL
{
struct SDL_Cursor
{
int mA;
}
}
struct ImGui
{
public enum MouseCursor
{
A,
B,
C,
D,
COUNT
}
}
struct Blurg
{
//private static SDL.SDL_Cursor*[(.)ImGui.MouseCursor.COUNT] g_MouseCursors = .(null,);
public static int MethodB<T>(T foo) where T : struct
{
return 2;
}
private static SDL.SDL_Cursor*[(.)ImGui.MouseCursor.COUNT] g_MouseCursors = .(null,);
public static int MethodB<K, V>((K key, V value) foo) where K : var where V : var
{
return 3;
}
public static void Hey()
{
let cur = new SDL.SDL_Cursor();
g_MouseCursors[0] = cur;
g_MouseCursors[1] = cur;
g_MouseCursors[2] = cur;
Debug.Assert(MethodB(11) == 2);
Debug.Assert(MethodB(("A", "B")) == 3);
}
}
class TestClass
{
public void GetIt(ref TestClass tc)
{
}
public this()
{
/*let a = &this;
GetIt(ref this);*/
}
}