1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-05 07:45:59 +02:00

Mintest changes

This commit is contained in:
Brian Fiete 2019-11-25 06:48:19 -08:00
parent 94b385495a
commit 79ccb33586
10 changed files with 253 additions and 221 deletions

View file

@ -1,12 +1,34 @@
using System;
// Zapples
struct StructA<T>
{
public T mVal;
static
public static bool operator< <TOther>(StructA<T> lhs, TOther rhs) where bool : operator T < TOther
{
return true;
}
/*public static TResult operator+<TOther, TResult>(StructA<T> lhs, TOther rhs)
where TResult = operator T * TOther
{
return lhs.mVal * rhs;
}*/
}
class TestA
{
public void Bloop()
{
StructA<float> sa;
sa.mVal = 1.23f;
let res = sa < 100;
int a = 1 * 2;
}
}
/*class Mintest2