Skip to content

Support match block #9

@RumataEstor

Description

@RumataEstor
    exmatch %OrderMatcherManager{
             capacities: capacities,
             matchers: %{
               {"BTC", "USDC", :buy} =>
                 OrderMatcherManager.registering(clients: [{^async_pid, _}])
             },
             delayed_matchers: delayed_matchers,
             notify_capacity_timer: timer_ref,
             notify_capacity_state: :min_scheduled
           } = get_state_when_registering_order_matcher({"BTC", "USDC", :buy})

** (RuntimeError) Special form __block__/2 is not yet supported in ExMatch
Please submit a report to handle {:__block__, [], [{:=, [], [{:clients, [counter: {LimitOrder.OrderMatcherManagerTest, 100}], LimitOrder.OrderMatcherManagerTest}, [{{:^, [line: 157], [{:async_pid, [line: 157], nil}]}, {:_, [line: 157], nil}}]]}, {:{}, [], [:registering, nil, nil, {:clients, [counter: {LimitOrder.OrderMatcherManagerTest, 100}], LimitOrder.OrderMatcherManagerTest}]}]}
    (exmatch 0.16.0) lib/exmatch/expr.ex:33: ExMatch.Expr.parse/2
    (exmatch 0.16.0) lib/exmatch/expr.ex:43: ExMatch.Expr.expand/2
    (exmatch 0.16.0) lib/exmatch/expr.ex:20: ExMatch.Expr.parse/2
    (exmatch 0.16.0) lib/exmatch/map.ex:38: ExMatch.Map.parse_field/5
    (elixir 1.14.1) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
    (exmatch 0.16.0) lib/exmatch/map.ex:25: ExMatch.Map.parse_fields/2
    (exmatch 0.16.0) lib/exmatch/map.ex:10: ExMatch.Map.parse/2
    (exmatch 0.16.0) lib/exmatch/map.ex:38: ExMatch.Map.parse_field/5
    (elixir 1.14.1) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
    (exmatch 0.16.0) lib/exmatch/map.ex:25: ExMatch.Map.parse_fields/2
    (exmatch 0.16.0) lib/exmatch/struct.ex:61: ExMatch.Struct.parse/2
    (exmatch 0.16.0) lib/exmatch.ex:81: ExMatch.gen_match/4
    (exmatch 0.16.0) expanding macro: ExMatch.match/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions