v2 / vlib / v / checker / tests / strict_map_index_err.vv
9 lines · 8 sloc · 91 bytes · 588c5c4120ca1972dce19655c0556cf6a539b125
Raw
1@[strict_map_index]
2module main
3
4fn main() {
5 m := {
6 'abc': 'xyz'
7 }
8 _ = m['missing']
9}
10