mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
14 lines
165 B
V
14 lines
165 B
V
fn fn_with_or() int {
|
|
fn_with_optional() or {
|
|
return 10
|
|
}
|
|
return 20
|
|
}
|
|
|
|
fn (f Foo) method_with_or() int {
|
|
f.fn_with_optional() or {
|
|
return 10
|
|
}
|
|
return 20
|
|
}
|