mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #797] [MERGED] Fix length of listings with computed index #741
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?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/797
Author: @odenix
Created: 11/10/2024
Status: ✅ Merged
Merged: 11/13/2024
Merged by: @holzensp
Base:
main← Head:listing-length📝 Commits (1)
016caf9Fix length of listings with computed index📊 Changes
4 files changed (+241 additions, -5 deletions)
View changed files
📝
pkl-commons-test/src/main/kotlin/org/pkl/commons/test/FileTestUtils.kt(+8 -1)📝
pkl-core/src/main/java/org/pkl/core/ast/expression/literal/EntriesLiteralNode.java(+5 -4)📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/listing.pkl(+60 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/listing.pcf(+168 -0)📄 Description
Motivation:
The following expression evaluates to 2 instead of 1:
new Listing { "value" } { [0 + 0] = "override" }.lengthChanges:
api/listingtestsResult:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.