diff --git a/vlib/v/tests/anon_fn_test.v b/vlib/v/tests/anon_fn_test.v index 0773e4cccf..f702464f9a 100644 --- a/vlib/v/tests/anon_fn_test.v +++ b/vlib/v/tests/anon_fn_test.v @@ -2,6 +2,7 @@ import sync fn test_go_anon_fn() { mut wg := sync.new_waitgroup() + wg.add(1) go fn (mut wg sync.WaitGroup) { wg.done() }(mut wg)