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:
@ -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')
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user