(x float32)
| 23 | } |
| 24 | |
| 25 | func RecordError(x float32) Result[float32, E2] { |
| 26 | if x == 0.0 { |
| 27 | return Err[float32, E2](E2{420, 0}) |
| 28 | } else if x == 1.0 { |
| 29 | return Err[float32, E2](E2{77, 2}) |
| 30 | } else { |
| 31 | return Ok[float32, E2](x) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func VariantError(x float32) Result[float32, E3] { |
| 36 | if x == 0.0 { |
no outgoing calls
no test coverage detected