Skip to content

Commit

Permalink
Include a _ param test
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 16, 2024
1 parent 0f70595 commit dd09b1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/checker/tests/unused_param.out
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ vlib/v/checker/tests/unused_param.vv:7:9: notice: unused parameter: `unused_para
7 | fn func(unused_param int) {}
| ~~~~~~~~~~~~
8 |
9 | pub fn pub_func(unused_param int) {}
9 | fn func2(_ int) {}
2 changes: 2 additions & 0 deletions vlib/v/checker/tests/unused_param.vv
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ fn (unused_receiver Foo) method(unused_param int) {}

fn func(unused_param int) {}

fn func2(_ int) {}

pub fn pub_func(unused_param int) {}

fn C.puts(unused_c_param &char) int

0 comments on commit dd09b1d

Please sign in to comment.