leo/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out
2022-11-08 15:49:47 -08:00

6 lines
471 B
Plaintext

---
namespace: Compile
expectation: Fail
outputs:
- "Error [ETYC0372024]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372014]: t.2 is not a valid core function call.\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\n"