We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
v -cross -o vc/v.c cmd/v
1 parent d5ff133 commit 037a3b4Copy full SHA for 037a3b4
1 file changed
vlib/v/parser/parser.v
@@ -2903,7 +2903,7 @@ fn (mut p Parser) unsafe_stmt() ast.Stmt {
2903
return p.error_with_pos('please use `unsafe {`', p.tok.pos())
2904
}
2905
p.next()
2906
- if p.inside_unsafe {
+ if p.inside_unsafe && !p.inside_defer {
2907
return p.error_with_pos('already inside `unsafe` block', pos)
2908
2909
if p.tok.kind == .rcbr {
0 commit comments