---
cases:
  - data:
    input_term: '{"x": false}'
    modules:
      - |
        package generated

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