OxL Reference

error impl-signature-mismatch

error Standard: [§10.1]

What it means#

Types of parameters and result may be omitted in the impl (they come from the service) or repeated; a repeated type must be the declared one. The number of parameters must match.

Example#

oxl✓ checked in CI
service Math { rpc twice(x: i32) -> i32 }
impl Math {
  rpc twice(x: str) -> i32 { 1 }   // <- impl-signature-mismatch
}
error
impl-signature-mismatch

How to fix#

Drop the types in the impl or write the ones of the service.

See also#

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