–– Pkl Error ––
Cannot reference property `res1` from here because it is not `const`.

x | const local qux = res1
                      ^^^^
at constLocalProperty#foo.qux (file:///$snippetsDir/input/errors/const/constLocalProperty.pkl)

To fix, do either of:
1. Add modifier `const` to property `res1`
2. Self-import this module, and reference this property from the import.

x | res2 = qux
           ^^^
at constLocalProperty#foo.res2 (file:///$snippetsDir/input/errors/const/constLocalProperty.pkl)

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

xxx | if (renderer is BytesRenderer) renderer.renderDocument(value) else text.encodeToBytes("UTF-8")
                                                                         ^^^^
at pkl.base#Module.output.bytes (pkl:base)
