1
0
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:
Alexander Medvednikov
2019-07-24 22:41:46 +02:00
parent a3e9a36553
commit d2b33397cc
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ fn test_err(){
}
fn err_call(ok bool) ?int {
return 'sdf'
if !ok {
return error('Not ok!')
}