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:
17
vlib/v/fmt/tests/thread_in_a_module_keep.vv
Normal file
17
vlib/v/fmt/tests/thread_in_a_module_keep.vv
Normal 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()
|
||||
}
|
Reference in New Issue
Block a user