vxx2 / vlib / v / checker / tests / fn_signature_alias_payload_mismatch_err.out
6 lines · 6 sloc · 490 bytes · b0e0a1e9348ec11888beaaa21ea9f7ff6eeea0c4
Raw
1vlib/v/checker/tests/fn_signature_alias_payload_mismatch_err.vv:19:7: error: casting a function value from one function signature, to another function signature, should be done inside `unsafe{}` blocks
2 17 | // Without `unsafe`, this must error: `fn () ![]Token` is *not* assignable
3 18 | // to `fn () !Tokens` even though the payloads have the same layout.
4 19 | _ := ReturnsTokens(returns_array_of_token)
5 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 20 | }
7