OxL Reference

error respond-type

error Standard: [§10.6]

What it means#

The value given to respond (or, without respond, the value of the last step) is the result of the pipeline call. Its type must be the declared result type R.

Example#

oxl✓ checked in CI
fn double(n: i32) -> i32 => n * 2
pipeline conv(n: i32) -> str {
  double
  -> respond it   // <- respond-type
}
error
respond-type

How to fix#

Change the declared result type or convert the value before respond.

See also#

OxL 1.0.0-beta · Documentation version 1.0.0-beta© OxwaldLink · generated from the Standard, the std sources and the guides