vxx2 / vlib / v / checker / tests / go_append_option_to_threads_err.vv
7 lines · 6 sloc · 84 bytes · 90941b3b1f5513cef7f913bc54f1b5a2af0c8c7a
Raw
1fn foo() ! {}
2
3fn main() {
4 mut ths := []thread{}
5 ths << spawn foo()
6 ths.wait()
7}
8