---
cases:
  - note: fix1863/is defined
    query: data.x.p = x
    modules:
      - |
        package a.b

        # this module is empty
      - |
        package x

        p := __local0__ if { # p should be defined (an empty object)
        	true
        	__local0__ = data.a.b
        }
      - |
        package topdown_test_partial

        __result__ := _result if {
        	_result = {"p": {}}
        }
    data: {}
    want_result:
      - x: {}
