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

parser: check error for defer propagate (fix #13534) (#13536)

This commit is contained in:
yuyi
2022-02-20 18:29:08 +08:00
committed by GitHub
parent 75ebac006d
commit 04654ed518
4 changed files with 36 additions and 2 deletions

View File

@@ -11,12 +11,12 @@ fn test_that_net_and_net_unix_can_be_imported_together_without_conflicts() ? {
mut l := unix.listen_stream(test_port) or { panic(err) }
go echo_server(mut l)
defer {
l.close() ?
l.close() or {}
}
//
mut c := unix.connect_stream(test_port) ?
defer {
c.close() ?
c.close() or {}
}
//
data := 'Hello from vlib/net!'