–– Pkl Error ––
Cannot spread object because the enclosing object already has a delcaration of property `foo`.

x | ...source
    ^^^^^^^^^
at spreadSyntaxDuplicateProperty2#res (file:///$snippetsDir/input/errors/spreadSyntaxDuplicateProperty2.pkl)

x | foo = 1
    ^^^
at spreadSyntaxDuplicateProperty2#source.foo (file:///$snippetsDir/input/errors/spreadSyntaxDuplicateProperty2.pkl)

xxx | text = renderer.renderDocument(value)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at pkl.base#Module.output.text (pkl:base)
