| 1 | vlib/v/checker/tests/compile_error_call_position.vv:3:11: notice: unused parameter: `val` |
| 2 | 1 | module main |
| 3 | 2 | |
| 4 | 3 | fn son[T](val T) { |
| 5 | | ~~~ |
| 6 | 4 | $if T !is int { |
| 7 | 5 | $compile_error('son only taken int as input') |
| 8 | vlib/v/checker/tests/compile_error_call_position.vv:10:2: error: son only taken int as input |
| 9 | 8 | |
| 10 | 9 | fn main() { |
| 11 | 10 | son(false) |
| 12 | | ~~~~~~~~~~ |
| 13 | 11 | } |
| 14 |