mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
parser: prepare for eliminating a warning for v -cross -o vc/v.c cmd/v
(part 1) (reduce CI annotation noise)
This commit is contained in:
parent
d5ff13335f
commit
037a3b4a00
1 changed files with 1 additions and 1 deletions
|
@ -2903,7 +2903,7 @@ fn (mut p Parser) unsafe_stmt() ast.Stmt {
|
|||
return p.error_with_pos('please use `unsafe {`', p.tok.pos())
|
||||
}
|
||||
p.next()
|
||||
if p.inside_unsafe {
|
||||
if p.inside_unsafe && !p.inside_defer {
|
||||
return p.error_with_pos('already inside `unsafe` block', pos)
|
||||
}
|
||||
if p.tok.kind == .rcbr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue