| 1 | vlib/v/checker/tests/test_functions_wrong_signature_test.vv:9:1: error: test functions should either return nothing at all, or be marked to return `?` or `!` |
| 2 | 7 | |
| 3 | 8 | // should be disallowed: |
| 4 | 9 | fn test_returning_int() int { |
| 5 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 6 | 10 | } |
| 7 | 11 | |
| 8 | vlib/v/checker/tests/test_functions_wrong_signature_test.vv:9:1: error: missing return at end of function `test_returning_int` |
| 9 | 7 | |
| 10 | 8 | // should be disallowed: |
| 11 | 9 | fn test_returning_int() int { |
| 12 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 13 | 10 | } |
| 14 | 11 | |
| 15 | vlib/v/checker/tests/test_functions_wrong_signature_test.vv:19:1: error: test functions should take 0 parameters |
| 16 | 17 | |
| 17 | 18 | // should be disallowed: |
| 18 | 19 | fn test_take_parameters(v int) { |
| 19 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 20 | 20 | } |
| 21 | |