vxx / vlib / v / checker / tests / void_function_assign_to_string.vv
8 lines · 7 sloc · 94 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1fn x(x int, y int) {
2}
3
4fn main() {
5 mut a := ''
6 a = x(1, 2) // hello
7 eprintln('a: ${a}')
8}
9