v2 / vlib / v / parser / tests / closure_not_used.out
7 lines · 7 sloc · 213 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/parser/tests/closure_not_used.vv:3:11: warning: unused variable: `a`
2 1 | fn my_fn() {
3 2 | a := 1
4 3 | f := fn [a] () {
5 | ^
6 4 | print('hello')
7 5 | }
8