mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sync: use asserts in channel code only when -d debug is passed
This commit is contained in:
@@ -41,7 +41,9 @@ fn main() {
|
||||
go do_rec(ch, resch, n)
|
||||
no -= n
|
||||
}
|
||||
assert no == 0
|
||||
$if debug {
|
||||
assert no == 0
|
||||
}
|
||||
no = nobj
|
||||
for i in 0 .. nsend {
|
||||
n := no / (nsend - i)
|
||||
|
||||
Reference in New Issue
Block a user