1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vfmt: keep module mymodule ... x := []thread MyStruct{} as it is

This commit is contained in:
Delyan Angelov
2021-07-12 10:40:11 +03:00
parent 5c7881feb7
commit 974737f26b
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,17 @@
module my_module
import another
import other as ooo
pub fn do_something() {
mut simples := []MyStruct{}
//
mut threads := []thread MyStruct{}
threads.wait()
//
mut another_threads := []thread another.MyStruct{}
another_threads.wait()
//
mut other_threads := []thread ooo.MyStruct{}
other_threads.wait()
}