---
cases:
  - note: nestedreferences/undefined
    query: data.generated.p = x
    modules:
      - |
        package generated

        p if {
        	__local0__ = data.three.deadbeef
        	data.a[__local0__] = x
        }
    data: {}
    want_result: []
