1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00

Support for operators with ref parameters, sized array->span

This commit is contained in:
Brian Fiete 2021-01-26 11:06:17 -08:00
parent 5c05b15b37
commit 1e52dce7c4
9 changed files with 183 additions and 31 deletions

View file

@ -52,6 +52,10 @@ namespace Tests
ClassA[2] caArr0 = .(ca0, ca0);
ClassA[2] caArr1 = .(ca1, ca1);
Test.Assert(caArr0 == caArr1);
Span<int> span = val1;
Test.Assert(span[0] == 7);
Test.Assert(span[1] == 8);
}
[Test]