mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Fixed 'vec += .(1, 2)' case
This commit is contained in:
parent
9b55146064
commit
94c2b980fe
2 changed files with 15 additions and 8 deletions
|
@ -68,6 +68,11 @@ namespace Tests
|
|||
{
|
||||
public int mA;
|
||||
|
||||
public this(int a)
|
||||
{
|
||||
mA = a;
|
||||
}
|
||||
|
||||
public static StructA operator+(StructA lhs, StructA rhs)
|
||||
{
|
||||
StructA res;
|
||||
|
@ -557,6 +562,10 @@ namespace Tests
|
|||
Test.Assert(sb0.mB == 13);
|
||||
Test.Assert(sb6.mB == 13);
|
||||
|
||||
StructA sa7 = sa0;
|
||||
sa7 += .(100);
|
||||
Test.Assert(sa7.mA == 103);
|
||||
|
||||
float val = Op((int32)100, (int16)23);
|
||||
Test.Assert(val == 123);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue