mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
optionals: better errors
This commit is contained in:
@ -10,6 +10,7 @@ fn test_err(){
|
||||
}
|
||||
|
||||
fn err_call(ok bool) ?int {
|
||||
return 'sdf'
|
||||
if !ok {
|
||||
return error('Not ok!')
|
||||
}
|
||||
|
Reference in New Issue
Block a user