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

parser: don't require unary > prefix for select timeout (#10928)

This commit is contained in:
Uwe Krüger
2021-07-23 22:24:27 +02:00
committed by GitHub
parent 1999850f88
commit 1e5627e777
17 changed files with 65 additions and 56 deletions

View File

@ -22,7 +22,7 @@ fn test_with_deadline() {
ctx_ch := ctx.done()
select {
_ := <-ctx_ch {}
> 1 * time.second {
1 * time.second {
panic('This should not happen')
}
}
@ -41,7 +41,7 @@ fn test_with_timeout() {
ctx_ch := ctx.done()
select {
_ := <-ctx_ch {}
> 1 * time.second {
1 * time.second {
panic('This should not happen')
}
}