apple / pkl

A configuration as code language with rich validation and tooling.
https://pkl-lang.org
Apache License 2.0
10.38k stars 280 forks source link

Fix length of listings with computed index #797

Closed translatenix closed 1 week ago

translatenix commented 1 week ago

Motivation: The following expression evaluates to 2 instead of 1: new Listing { "value" } { [0 + 0] = "override" }.length

Changes:

Result:

HT154 commented 1 week ago

Does this need to be backported to release/0.27?