mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
parser: fail when assigning to _ with :=
This commit is contained in:
parent
36edd6295f
commit
11b7b97311
41 changed files with 137 additions and 111 deletions
|
@ -4,7 +4,7 @@ fn start_socket_udp_server() {
|
|||
bufsize := 1024
|
||||
bytes := [1024]byte
|
||||
s := net.socket_udp() or { panic(err) }
|
||||
_ = s.bind( 9876 ) or { panic(err) }
|
||||
s.bind( 9876 ) or { panic(err) }
|
||||
println('Waiting for udp packets:')
|
||||
for {
|
||||
res := s.crecv(bytes, bufsize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue