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:
parent
34cfe603e6
commit
a6a891d800
3 changed files with 36 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue