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

        p {
          x = [{}, {[1, 2], [3, 4]}]
          y = [3, 4]
          x[i][y]
        }
    note: "varreferences/set: lookup: embedded"
    query: data.generated.p = x
    want_result:
      - x: true
