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

checker: check argument for chan.try_push/pop() (#9798)

This commit is contained in:
Uwe Krüger
2021-04-19 10:41:21 +02:00
committed by GitHub
parent a45da620e6
commit 8ab0d42b5f
7 changed files with 78 additions and 12 deletions

View File

@@ -8,6 +8,6 @@ fn test_channel_try_unbuffered() {
panic('push on non-ready channel not detected')
}
mut obj := -17
for ch.try_pop(obj) == .success {}
for ch.try_pop(mut obj) == .success {}
assert obj == -17
}