v/vlib/v/tests/go_array_wait_without_go_te...

28 lines
276 B
V

fn test_go_array_wait_without_go() {
sa := SA{}
sb := SA{}
sa.wait()
sb.wait()
assert true
}
struct SA {
mut:
threads []thread
}
pub fn (self SA) wait() {
self.threads.wait()
}
struct SB {
mut:
threads []thread
}
pub fn (self SB) wait() {
self.threads.wait()
}