v/vlib/v/checker/tests/string_index_non_int_err.vv

7 lines
91 B
V

fn main() {
v := 'foo'
println(v['f'])
println(v[true])
println(v[[23]])
}