---
cases:
  - note: undos/object-ref-element
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains x if {
        	__local0__ = data.obj_ref
        	obj = {"a": {"x": 1, "y": 2}, "b": __local0__, "c": {"x": 2, "y": 2}}
        	obj[_] = {"x": x, "y": 2}
        }
    data:
      obj_ref:
        "true": null
        x: 1
    want_result:
      - x:
          - 1
          - 2
    sort_bindings: true
