1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check that array slicing indexes are valid (#5892)

This commit is contained in:
Nick Treleaven
2020-07-20 17:52:03 +01:00
committed by GitHub
parent 8653605b0a
commit e6fc8eb015
8 changed files with 99 additions and 35 deletions

View File

@ -438,7 +438,7 @@ pub struct IndexExpr {
pub:
pos token.Position
left Expr
index Expr // [0], [start..end] etc
index Expr // [0] or RangeExpr [start..end]
pub mut:
left_type table.Type // array, map, fixed array
is_setter bool