–– Pkl Error ––
Duplicate definition of member `y`.

x | when (true) { y = 2 }
                  ^
at duplicateDefinition3#x (file:///$snippetsDir/input/generators/duplicateDefinition3.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)
