| 1 | // ordinary functions can return whatever they like, |
| 2 | // since they are not called by V's testing system |
| 3 | // in the generated main(): |
| 4 | fn abc() int { |
| 5 | return 1 |
| 6 | } |
| 7 | |
| 8 | // should be disallowed: |
| 9 | fn test_returning_int() int { |
| 10 | } |
| 11 | |
| 12 | // NB: this is allowed explicitly now, to allow for shorter tests |
| 13 | // of functions returning options. |
| 14 | fn test_returning_opt() { |
| 15 | assert true |
| 16 | } |
| 17 | |
| 18 | // should be disallowed: |
| 19 | fn test_take_parameters(v int) { |
| 20 | } |
| 21 |