mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: check range exprs
This commit is contained in:
parent
973b5c226a
commit
920ab79665
@ -878,6 +878,12 @@ pub fn (c mut Checker) index_expr(node mut ast.IndexExpr) table.Type {
|
||||
match node.index {
|
||||
ast.RangeExpr {
|
||||
is_range = true
|
||||
if it.has_low {
|
||||
c.expr(it.low)
|
||||
}
|
||||
if it.has_high {
|
||||
c.expr(it.high)
|
||||
}
|
||||
}
|
||||
else {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user