1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 14:54:09 +02:00

Did proper badOps handling for both arg0 and arg1 being immediates

This commit is contained in:
Brian Fiete 2021-12-30 06:56:00 -05:00
parent 60c19c4160
commit eb0cd3aefb
2 changed files with 17 additions and 4 deletions

View file

@ -377,6 +377,8 @@ namespace Tests
}
}
public struct Vector2 : this(float x, float y);
[Test]
public static void TestBasics()
{
@ -492,6 +494,11 @@ namespace Tests
let oai2 = OuterOp2<float>.InnerOp<int>.Op(2.0f, 200);
Test.Assert(oai2 == 202.0f);*/
const int c0 = 1;
const int32 c1 = 1;
int i0 = 0;
var tVal = Vector2((i0 % c0) * (c1 + c1), 1);
}
struct IntStruct