1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Improved semicolon handling for inline anonymous type references

This commit is contained in:
Brian Fiete 2025-01-04 12:47:45 -08:00
parent 34cfe603e6
commit a6a891d800
3 changed files with 36 additions and 8 deletions

View file

@ -45,6 +45,8 @@ class Anonymous
public int Val = 123;
}
public static class : this(int x, int y) sValA = new .(3, 4) ~ delete _;
[Test]
public static void TestBasics()
{
@ -85,5 +87,8 @@ class Anonymous
var str = ca.ToString(.. scope .());
Test.Assert(str == "ClassA override");
Test.Assert(sValA.x == 3);
Test.Assert(sValA.y == 4);
}
}