v4 / vlib / v / checker / tests / option_arithmetic_err.out
7 lines · 7 sloc · 281 bytes · fa0e4c8f357952d5191dcd4c2c14d45dfd093a24
Raw
1vlib/v/checker/tests/option_arithmetic_err.vv:6:31: error: `?f64` cannot be used as `f64`, unwrap the option first
2 4 |
3 5 | fn (f Foo) bar(m map[rune]f64) f64 {
4 6 | return m[`x`] or { 0.0 } * f.value
5 | ~~~~~
6 7 | }
7 8 |
8