–– Pkl Error ––
Cannot call method `nonConstFunction` from here because it is not `const`.

x | const function constFunctionCallingNonConst(): (String) -> String = (s) -> s + nonConstFunction()
                                                                                   ^^^^^^^^^^^^^^^^^^
at constFunctionCallingNonConst#constFunctionCallingNonConst.<function#1> (file:///$snippetsDir/input/errors/const/constFunctionCallingNonConst.pkl)

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

x | res = constFunctionCallingNonConst().apply("prefix")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at constFunctionCallingNonConst#res (file:///$snippetsDir/input/errors/const/constFunctionCallingNonConst.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)
