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

sync: fix error of empty struct channel (fix #17556) (#17597)

This commit is contained in:
yuyi
2023-03-11 18:02:51 +08:00
committed by GitHub
parent a98376025e
commit 6e4dc82f28
3 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,8 @@
struct User {
}
fn test_empty_struct_chan_init() {
user_ch := chan User{cap: 10}
println(user_ch)
assert true
}