mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
vlib/v/checker/tests/go_append_optional_to_threads_err.vv:5:12: error: cannot append `thread !` to `[]thread`
|
||||
3 | fn main() {
|
||||
4 | mut ths := []thread{}
|
||||
5 | ths << go foo()
|
||||
| ~~~~~
|
||||
6 | ths.wait()
|
||||
7 | }
|
||||
@@ -0,0 +1,7 @@
|
||||
fn foo() ! {}
|
||||
|
||||
fn main() {
|
||||
mut ths := []thread{}
|
||||
ths << go foo()
|
||||
ths.wait()
|
||||
}
|
||||
Reference in New Issue
Block a user