mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1383] Fix super method call inside let expression #1058
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/1383
Author: @cipheraxat
Created: 12/22/2025
Status: 🔄 Open
Base:
main← Head:fix/super-call-in-let-expression📝 Commits (1)
5a5adf3Fix super method call inside let expression📊 Changes
4 files changed (+52 additions, -0 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/ast/builder/SymbolTable.java(+2 -0)📝
pkl-core/src/main/java/org/pkl/core/ast/expression/member/InvokeSuperMethodNode.java(+3 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/input/classes/supercallsInLet.pkl(+44 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/output/classes/supercallsInLet.pcf(+3 -0)📄 Description
Fixes #1309
The issue was that super calls were blocked inside let expressions because:
Changes:
Added regression tests covering:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.