vxx2 / vlib / v / checker / tests / map_init_invalid_update.out
14 lines · 14 sloc · 494 bytes · c4b80369702d22bd05ad3bdf58ce564b2f0eff4e
Raw
1vlib/v/checker/tests/map_init_invalid_update.vv:8:6: error: invalid map update: non-map type
2 6 | foo := 'foo is a string'
3 7 | a := {
4 8 | ...foo // not a map
5 | ~~~
6 9 | 'a': 5
7 10 | 'b': 6
8vlib/v/checker/tests/map_init_invalid_update.vv:19:6: error: invalid map update: non-map type
9 17 | println(b)
10 18 | c := {
11 19 | ...Foo{9} // also not ok
12 | ~~~~~~
13 20 | }
14 21 | println(c)
15