mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 19:58:11 +00:00
In array indexing, move the check for an out-of-bounds index into the constant evaluation logic, so that we will also benefit from it when constant evaluating a compile-time function. In tuple indexing, require a template constant index instead of an integer literal.