[interop][SwiftToCxx] expose subscript getter for Array's operator []

This commit is contained in:
Alex Lorenz
2022-09-12 21:13:27 -07:00
parent d5c531fefc
commit 8c48d268d5
5 changed files with 62 additions and 11 deletions

View File

@@ -48,6 +48,8 @@ int main() {
UseArray::printArray(val);
assert(val.getCount() == 1);
assert(val.getCapacity() >= 1);
auto zeroInt = val[0];
assert(zeroInt == -11);
auto firstInt = val.remove(0);
assert(firstInt == -11);
assert(val.getCount() == 0);