mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #428] [MERGED] Cannot assign property with fixed/const in spread #548
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/428
Author: @luuvish
Created: 4/13/2024
Status: ✅ Merged
Merged: 4/16/2024
Merged by: @bioball
Base:
main← Head:main📝 Commits (1)
96da7e5Cannot assign property with fixed/const in spread📊 Changes
3 files changed (+52 additions, -13 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/ast/expression/generator/GeneratorSpreadNode.java(+33 -13)➕
pkl-core/src/test/files/LanguageSnippetTests/input/errors/cannotAssignFixedProperty3.pkl(+5 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/output/errors/cannotAssignFixedProperty3.err(+14 -0)📄 Description
When using spread syntax with typed object, properties that are fixed or const cannot be assigned or amended.
This should be checked in the checkTypedProperty() function.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.