---
cases:
  - note: "varreferences/object: ground var"
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains x if {
        	i = {"a": 1, "b": 2, "c": 3}
        	j = ["a", "c", "deadbeef"]
        	j[k] = y
        	i[y] = x
        }
    data: {}
    want_result:
      - x:
          - 1
          - 3
    sort_bindings: true
