| 1 | vlib/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() |
| 8 | vlib/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 |