v/vlib/v/checker/tests/optional_or_block_mismatch.out

8 lines
259 B
Plaintext

vlib/v/checker/tests/optional_or_block_mismatch.vv:10:18: error: wrong return type `Bar` in the `or {}` block, expected `&Bar`
8 |
9 | fn main() {
10 | x := foo() or { Bar{} }
| ~~~~~
11 | println(x)
12 | }