mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
log: mark log.fatal as [noreturn]
(#16129)
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
Reference in New Issue
Block a user