mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
An unexpected error has occurred. Would you mind filing a bug report? #315
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kaihendry on GitHub (Jun 9, 2025).
Minimal Repro: https://github.com/kaihendry/pkl-env
@StefMa commented on GitHub (Jun 9, 2025):
Its because each module has a
outputproperty.See https://pkl-lang.org/package-docs/pkl/current/base/Module#output
Basically you're not allowed to create a class named
output.Playground example
https://pkl-playground.vercel.app/?share=race-coal-show
Naming it
Outputhowever works. https://pkl-playground.vercel.app/?share=pick-push-mannerPkl should propably prevent this by raising a correct error 🤷♂️
@kaihendry commented on GitHub (Jun 9, 2025):
Thank you! I have another question over here: https://github.com/apple/pkl/discussions/1096