mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
log: mark log.fatal as [noreturn]
(#16129)
This commit is contained in:
parent
51f4d99399
commit
c684dd8c9b
3 changed files with 12 additions and 2 deletions
|
@ -19,6 +19,4 @@ fn main() {
|
|||
l.set_level(log.level_from_tag('') or { log.Level.disabled }) // set level from string, sample
|
||||
l.error('no output anymore')
|
||||
l.fatal('fatal') // panic, next statements won't be executed
|
||||
l.set_level(.info)
|
||||
l.warn('warn')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue