vxx2 / vlib / v / checker / tests / compile_error_call_position.out
13 lines · 13 sloc · 436 bytes · 947434b81683667818cb12e9ba570b401bcc0912
Raw
1vlib/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')
8vlib/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