---
cases:
  - data: {}
    input_term: '{"x": ["a"]}'
    modules:
      - |
        package generated

        p = __local0__ {
          __local2__ = input.x
          object.remove(__local2__, {"a"}, __local1__)
          __local0__ = __local1__
        }
    note: objectremove/error invalid object param type array input
    query: data.generated.p = x
    want_error: "object.remove: operand 1 must be object but got array"
    want_error_code: eval_type_error
    strict_error: true
