mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Fixed typealias dependencies
This commit is contained in:
parent
19c34255df
commit
38dd2cc183
7 changed files with 100 additions and 47 deletions
|
@ -1,35 +1,9 @@
|
|||
using System;
|
||||
// Zapples
|
||||
|
||||
struct StructA<T>
|
||||
{
|
||||
public T mVal;
|
||||
|
||||
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
|
||||
{
|
||||
|
@ -59,4 +33,4 @@ class TestA
|
|||
1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +
|
||||
1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1;
|
||||
}
|
||||
}*/
|
||||
}*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue