aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/checker/tests/generics_fn_called_arg_mismatch.out
blob: f6913f5f42eedaedfcdf0c74ebe9ee35fbc155a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 | }