mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
Failed type constraint error messages do not show forced members #271
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 @bioball on GitHub (Jan 30, 2025).
This is a regression.
This snippet:
Produces the following error message:
In Pkl 0.26, we get more details:
@bioball commented on GitHub (Jan 30, 2025):
This has to do with the listing/mapping typecheck changes.
Removing the type annotation on the lambda parameter gives us the same error message as in Pkl 0.26.
Perhaps the correct behavior here is to execute eager typechecks when executing a constraint node.
@bioball commented on GitHub (Feb 20, 2025):
Closed by #964
@cceneag commented on GitHub (Jun 19, 2025):
👍