mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Mintest changes
This commit is contained in:
parent
94b385495a
commit
79ccb33586
10 changed files with 253 additions and 221 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue