| 1 | vlib/v/checker/tests/cast_generic_err.vv:2:7: error: cannot cast literal value to [2]u8 type |
| 2 | 1 | fn decode[T]() { |
| 3 | 2 | _ := T(0) |
| 4 | | ~~~~ |
| 5 | 3 | } |
| 6 | 4 | |
| 7 | vlib/v/checker/tests/cast_generic_err.vv:2:7: error: cannot cast literal value to []u8 type |
| 8 | 1 | fn decode[T]() { |
| 9 | 2 | _ := T(0) |
| 10 | | ~~~~ |
| 11 | 3 | } |
| 12 | 4 | |
| 13 | vlib/v/checker/tests/cast_generic_err.vv:2:7: error: cannot cast literal value to map[int]u8 type |
| 14 | 1 | fn decode[T]() { |
| 15 | 2 | _ := T(0) |
| 16 | | ~~~~ |
| 17 | 3 | } |
| 18 | 4 | |
| 19 |