OxL Reference

error duplicate-impl

error Standard: [§10.1]

What it means#

A service has exactly one impl. A second one (or any impl of an extern service) is rejected.

Example#

oxl✓ checked in CI
service Twice { rpc ping() -> i32 }
impl Twice { rpc ping() { 1 } }
impl Twice { rpc ping() { 2 } }   // <- duplicate-impl
error
duplicate-impl

How to fix#

Merge the two blocks. An extern service is implemented by another program and has no impl here.

See also#

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