OxL Reference

error duplicate-provide

error Standard: [§12.7]

What it means#

A role gets one factory per type.

Example#

oxl✓ checked in CI
provide Db = Db{ n: 1 }
provide Db = Db{ n: 2 }   // <- duplicate-provide
error
duplicate-provide

How to fix#

Keep one provide, or restrict them to different roles with for role.

See also#

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