---
cases:
  - data: {}
    modules:
      - |
        package generated

        p[x] {
          [2, x, 3] = [x, 2, 3]
        }
    note: "eqexpr/pattern: array same var"
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - 2
