v2 / vlib / v / checker / tests / closure_undefined_ident_err.out
14 lines · 14 sloc · 574 bytes · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/v/checker/tests/closure_undefined_ident_err.vv:25:7: warning: unused variable: `method`
2 23 | c := Custom{'noname'}
3 24 |
4 25 | $for method in MyInterface.methods {
5 | ~~~~~~
6 26 | z := fn [c] () {
7 27 | c.$method()
8vlib/v/checker/tests/closure_undefined_ident_err.vv:27:6: error: undefined ident `method` in the anonymous function
9 25 | $for method in MyInterface.methods {
10 26 | z := fn [c] () {
11 27 | c.$method()
12 | ~~~~~~~~~
13 28 | }
14 29 | z()
15