v2 / vlib / v / checker / tests / cannot_cast_to_alias.out
6 lines · 6 sloc · 208 bytes · 85d36ed231a534e9cb00f9c63dfef7b68dd67910
Raw
1vlib/v/checker/tests/cannot_cast_to_alias.vv:6:7: error: cannot cast `int literal` to `MyType` (alias to `string`)
2 4 |
3 5 | fn main() {
4 6 | _ := MyType(5)
5 | ~~~~~~~~~
6 7 | }
7