28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
vlib/v/checker/tests/generics_fn_called_arg_mismatch.vv:6:15: error: cannot use `int literal` as `bool` in argument 1 to `foo`
|
|
4 |
|
|
5 | fn main() {
|
|
6 | foo<bool>(1)
|
|
| ^
|
|
7 | foo<bool>(2.2)
|
|
8 | foo<string>(true)
|
|
vlib/v/checker/tests/generics_fn_called_arg_mismatch.vv:7:15: error: cannot use `float literal` as `bool` in argument 1 to `foo`
|
|
5 | fn main() {
|
|
6 | foo<bool>(1)
|
|
7 | foo<bool>(2.2)
|
|
| ~~~
|
|
8 | foo<string>(true)
|
|
9 | foo<int>('aaa')
|
|
vlib/v/checker/tests/generics_fn_called_arg_mismatch.vv:8:17: error: cannot use `bool` as `string` in argument 1 to `foo`
|
|
6 | foo<bool>(1)
|
|
7 | foo<bool>(2.2)
|
|
8 | foo<string>(true)
|
|
| ~~~~
|
|
9 | foo<int>('aaa')
|
|
10 | }
|
|
vlib/v/checker/tests/generics_fn_called_arg_mismatch.vv:9:14: error: cannot use `string` as `int` in argument 1 to `foo`
|
|
7 | foo<bool>(2.2)
|
|
8 | foo<string>(true)
|
|
9 | foo<int>('aaa')
|
|
| ~~~~~
|
|
10 | }
|