Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
function_cast_outside_unsafe_err.out
6
lines
·
6
sloc
·
319 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
vlib/v/checker/tests/function_cast_outside_unsafe_err.vv:7:10: error: casting a function value from one function signature, to another function signature, should be done inside `unsafe{}` blocks
2
5 | fn main() {
3
6 | f := fn () {}
4
7 | println(FnB(f)) // not FnA()
5
| ~~~~~~
6
8 | }
7