pkl / PR 1875

Improve cases where type nodes can turn into TypeNode.UnionOfStringLiterals

apple/pkl#1875 openmixed

+167/−29lines
8files
3comments
2026-09-24opened
-merged

What it touches

main: 4 test: 4

Modules: pkl-core (8)

Architectural impact (arcade-agent diff_impact)

4files mapped to the graph
162entities in those files
Core, Parsercomponents
1938entities within 3 hops downstream

Most depended-upon changed entities

EntityDependents
org.pkl.core.ast.type.TypeNode385
org.pkl.core.ast.type.UnresolvedTypeNode315
org.pkl.core.ast.builder.AstBuilder100
org.pkl.core.ast.type.VmTypeMismatchException17

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/type/TypeNode.java
mainpkl-core/src/main/java/org/pkl/core/ast/type/UnresolvedTypeNode.java
mainpkl-core/src/main/java/org/pkl/core/ast/type/VmTypeMismatchException.java
testpkl-core/src/test/files/LanguageSnippetTests/input/api/reflect7.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/types/typeAliasUnion2.pkl
testpkl-core/src/test/files/LanguageSnippetTests/output/api/reflect7.pcf
testpkl-core/src/test/files/LanguageSnippetTests/output/types/typeAliasUnion2.pcf