1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

foo()? syntax

This commit is contained in:
Alexander Medvednikov
2019-11-13 21:47:05 +03:00
parent 72249ce889
commit b1fa0d25f0
5 changed files with 34 additions and 10 deletions

View File

@ -70,3 +70,11 @@ fn test_opt_default() {
}
assert a == 'default'
}
fn foo_ok() ?int {
return 777
}
fn test_q() {
//assert foo_ok()? == true
}