mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
foo()? syntax
This commit is contained in:
@ -70,3 +70,11 @@ fn test_opt_default() {
|
||||
}
|
||||
assert a == 'default'
|
||||
}
|
||||
|
||||
fn foo_ok() ?int {
|
||||
return 777
|
||||
}
|
||||
|
||||
fn test_q() {
|
||||
//assert foo_ok()? == true
|
||||
}
|
||||
|
Reference in New Issue
Block a user