pkl / PR 1824

Add inference for let bindings

apple/pkl#1824 mergedmixed

+192/−41lines
6files
18comments
2026-08-15opened
2026-09-15merged

What it touches

main: 4 test: 2

Modules: pkl-core (6)

Architectural impact (arcade-agent diff_impact)

4files mapped to the graph
162entities in those files
Corecomponents
1914entities within 3 hops downstream

Most depended-upon changed entities

EntityDependents
org.pkl.core.ast.type.TypeNode377
org.pkl.core.ast.builder.AstBuilder100

Computed against the current default branch, not the PR base commit; files renamed or deleted since then are unmatched. Downstream counts are a reverse-dependency closure to depth 3 and over-approximate real blast radius.

Files

mainpkl-core/src/main/java/org/pkl/core/ast/builder/AstBuilder.java
mainpkl-core/src/main/java/org/pkl/core/ast/expression/binary/LetExprNode.java
mainpkl-core/src/main/java/org/pkl/core/ast/expression/member/InferParentWithinLetBindingNode.java
mainpkl-core/src/main/java/org/pkl/core/ast/type/TypeNode.java
testpkl-core/src/test/files/LanguageSnippetTests/input/basic/letTyped.pkl
testpkl-core/src/test/files/LanguageSnippetTests/output/basic/letTyped.pcf