machine_handler_phases.bend fails
raw source on the hub · import bendvy-ecs-core@0.1.0.0/machine_handler_phases.bend as Machine_handler_phases
6 imports
import Base import ./world.bend as W import ./system.bend as Sys import ./machine.bend as M import ./machine_handlers.bend as H import ./machine_handler_engine.bend as Engine
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>: