Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
strict_map_index_err.out
6
lines
·
6
sloc
·
267 bytes
·
588c5c4120ca1972dce19655c0556cf6a539b125
Raw
1
vlib/v/checker/tests/strict_map_index_err.vv:8:7: error: `@[strict_map_index]` requires handling missing map keys with `or {}` or `if value := map[key] {}`
2
6 | 'abc': 'xyz'
3
7 | }
4
8 | _ = m['missing']
5
| ~~~~~~~~~~~
6
9 | }
7