| 1 | vlib/v/checker/tests/generics_fn_called_arg_mismatch.vv:6:12: error: cannot use `int literal` as `bool` in argument 1 to `foo` |
| 2 | 4 | |
| 3 | 5 | fn main() { |
| 4 | 6 | foo[bool](1) |
| 5 | | ^ |
| 6 | 7 | foo[bool](2.2) |
| 7 | 8 | foo[string](true) |
| 8 | vlib/v/checker/tests/generics_fn_called_arg_mismatch.vv:7:12: error: cannot use `float literal` as `bool` in argument 1 to `foo` |
| 9 | 5 | fn main() { |
| 10 | 6 | foo[bool](1) |
| 11 | 7 | foo[bool](2.2) |
| 12 | | ~~~ |
| 13 | 8 | foo[string](true) |
| 14 | 9 | foo[int]('aaa') |
| 15 | vlib/v/checker/tests/generics_fn_called_arg_mismatch.vv:8:14: error: cannot use `bool` as `string` in argument 1 to `foo` |
| 16 | 6 | foo[bool](1) |
| 17 | 7 | foo[bool](2.2) |
| 18 | 8 | foo[string](true) |
| 19 | | ~~~~ |
| 20 | 9 | foo[int]('aaa') |
| 21 | 10 | } |
| 22 | vlib/v/checker/tests/generics_fn_called_arg_mismatch.vv:9:11: error: cannot use `string` as `int` in argument 1 to `foo` |
| 23 | 7 | foo[bool](2.2) |
| 24 | 8 | foo[string](true) |
| 25 | 9 | foo[int]('aaa') |
| 26 | | ~~~~~ |
| 27 | 10 | } |
| 28 | |