We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e69315 commit 8a39132Copy full SHA for 8a39132
1 file changed
vlib/v/checker/checker.v
@@ -4953,6 +4953,11 @@ fn (mut c Checker) index_expr(mut node ast.IndexExpr) ast.Type {
4953
typ_sym = unsafe { unwrapped_sym }
4954
}
4955
4956
+ .string {
4957
+ if node.is_gated && c.mod != 'strings' {
4958
+ c.table.used_features.range_index = true
4959
+ }
4960
4961
else {}
4962
4963
if !c.is_builtin_mod && c.mod !in ['strings', 'math.bits'] {
0 commit comments