OxL Справочник OxL
РусскийEnglish

error respond-type

error Стандарт: [§10.6]

Тип значения `respond` (или последнего шага) не совпадает с результатом пайплайна.

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✓ проверяется в 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 · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства