ordinary_machine_handler_bundle.bend fails
raw source on the hub · import bendvy-ecs-core@0.1.0.0/ordinary_machine_handler_bundle.bend as Ordinary_machine_handler_bundle
11 imports
import Base import ./machine_handler_phases.bend as Phase import ./ordinary_machine_handler_bundle_context.bend as Context import ./trace_facts.bend as Facts import ./world.bend as W import ./system.bend as Sys import ./machine.bend as M import ./machine_handlers.bend as H import ./machine_handler_bundle.bend as B import ./schedule.bend as Sch import ./ordinary_machine_schedule.bend as Ordinary
The reader could not load this file (at 0x296ca5f551e3792cd56cfc8122905b94/machine_handler_engine.bend:15). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Ready)
- observed : 'Ready'
Location:
14 | Idle{slot:M.Slot<S,K,V>}
15>| Ready{slot:M.Slot<S,K,V>,transition:M.Transition<V>,skipSame:Bool}
| ^^^^^
16 | def prepend(~S:Data,~State:Type,~Entry:Type,~Phase:Data,~V:Data,~invoke:Entry -> State -> Phase -> V -> V -> Entry & Sys.Outcome<State,String,Unit>,~initial:Entry -> State -> V -> Entry & Sys.Outcome<State,String,Unit>,~exitPhase:Phase,~transitionPhase:Phase,~enterPhase:Phase,head:Entry,tail:PhaseResult<State,Entry>) -> PhaseResult<State,Entry>: