mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
parent
5e69315fc2
commit
8a39132b6e
1 changed files with 5 additions and 0 deletions
|
@ -4953,6 +4953,11 @@ fn (mut c Checker) index_expr(mut node ast.IndexExpr) ast.Type {
|
|||
typ_sym = unsafe { unwrapped_sym }
|
||||
}
|
||||
}
|
||||
.string {
|
||||
if node.is_gated && c.mod != 'strings' {
|
||||
c.table.used_features.range_index = true
|
||||
}
|
||||
}
|
||||
else {}
|
||||
}
|
||||
if !c.is_builtin_mod && c.mod !in ['strings', 'math.bits'] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue