mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: obey [ref_only] tag, allow embedding in other ref struct (#8707)
This commit is contained in:
@@ -529,7 +529,7 @@ pub fn channel_select(mut channels []&Channel, dir []Direction, mut objrefs []vo
|
||||
assert channels.len == dir.len
|
||||
assert dir.len == objrefs.len
|
||||
mut subscr := []Subscription{len: channels.len}
|
||||
mut sem := Semaphore{}
|
||||
mut sem := unsafe { Semaphore{} }
|
||||
sem.init(0)
|
||||
for i, ch in channels {
|
||||
subscr[i].sem = &sem
|
||||
|
||||
Reference in New Issue
Block a user