1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 00:50:25 +02:00

Initializer expressions

This commit is contained in:
Brian Fiete 2020-06-18 06:12:14 -07:00
parent f6e31e4976
commit 229a5aa5c5
17 changed files with 305 additions and 18 deletions

View file

@ -6,6 +6,12 @@ namespace Tests
{
class Tuples
{
public static void Add(ref (int32, float) val)
{
val.0 += 100;
val.1 += 200;
}
[Test]
public static void TestBasic()
{
@ -21,6 +27,9 @@ namespace Tests
let v0 = tVal1.0;
Test.Assert(v0 == 2);
Add(ref tVal1);
Test.Assert(tVal1 == (a: 102, b: 203));
}
class ValClass