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:
parent
ac6f58f118
commit
596dd2401d
7 changed files with 85 additions and 66 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue