1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-03 06:45:59 +02:00

Added support for indexer in initializer expression, reeval Add calls

This commit is contained in:
Brian Fiete 2023-03-17 11:13:41 -07:00
parent ac6f58f118
commit 596dd2401d
7 changed files with 85 additions and 66 deletions

View file

@ -420,6 +420,10 @@ namespace Tests
list.Sort();
List<float> floatList = scope .() {1, 2, 3};
Dictionary<int, String> dict = scope .() { (1, "Foo"), [2]="Bar" };
Test.Assert(dict[1] == "Foo");
Test.Assert(dict[2] == "Bar");
ClassA ca = scope .();
ClassB cb = scope .();
Test.Assert(LibA.LibA0.GetVal(ca) == 123);