vxx2 / vlib / v / checker / tests / test_functions_wrong_signature_test.out
20 lines · 20 sloc · 798 bytes · 1512486d01d4205e7b67ebd679238fa45cd348af
Raw
1vlib/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 |
8vlib/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 |
15vlib/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