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

        p = __local0__ {
          object.union({"a": {"b": {"c": 1}}}, {"b": 2}, __local1__)
          __local0__ = __local1__
        }
    note: objectunion/nested
    query: data.generated.p = x
    want_result:
      - x:
          a:
            b:
              c: 1
          b: 2
