| 1 | vlib/v/parser/tests/method_call_receiver_err.vv:6:2: warning: unused variable: `s1` |
| 2 | 4 | |
| 3 | 5 | fn main() { |
| 4 | 6 | s1 := S1{} |
| 5 | | ~~ |
| 6 | 7 | |
| 7 | 8 | $for method in S1.methods { |
| 8 | vlib/v/parser/tests/method_call_receiver_err.vv:8:7: warning: unused variable: `method` |
| 9 | 6 | s1 := S1{} |
| 10 | 7 | |
| 11 | 8 | $for method in S1.methods { |
| 12 | | ~~~~~~ |
| 13 | 9 | println(S1.method_hello('yo')) |
| 14 | 10 | } |
| 15 | vlib/v/parser/tests/method_call_receiver_err.vv:9:11: error: unknown function: S1.method_hello |
| 16 | 7 | |
| 17 | 8 | $for method in S1.methods { |
| 18 | 9 | println(S1.method_hello('yo')) |
| 19 | | ~~~~~~~~~~~~~~~~~~~~~ |
| 20 | 10 | } |
| 21 | 11 | } |
| 22 | vlib/v/parser/tests/method_call_receiver_err.vv:9:3: error: `println` can not print void expressions |
| 23 | 7 | |
| 24 | 8 | $for method in S1.methods { |
| 25 | 9 | println(S1.method_hello('yo')) |
| 26 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 27 | 10 | } |
| 28 | 11 | } |
| 29 | |