mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
12 lines
178 B
V
12 lines
178 B
V
import log
|
|
|
|
[noreturn]
|
|
fn should_not_return(mut logger log.Log) {
|
|
logger.fatal('${@FILE_LINE}: yikes!')
|
|
}
|
|
|
|
fn main() {
|
|
mut my_log := log.Log{}
|
|
should_not_return(mut my_log)
|
|
}
|