mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
[PR #516] [MERGED] Require references from typealiases to be const #598
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/516
Author: @bioball
Created: 6/5/2024
Status: ✅ Merged
Merged: 6/10/2024
Merged by: @bioball
Base:
main← Head:typealias-const📝 Commits (1)
cdbf867Require references from typealiases to be const📊 Changes
5 files changed (+37 additions, -7 deletions)
View changed files
📝
docs/modules/language-reference/pages/index.adoc(+12 -5)📝
pkl-core/src/main/java/org/pkl/core/ast/builder/SymbolTable.java(+1 -1)➕
pkl-core/src/test/files/LanguageSnippetTests/input/errors/const/constTypeAliasConstraint.pkl(+5 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/output/errors/const/constTypeAliasConstraint.err(+18 -0)📝
stdlib/Project.pkl(+1 -1)📄 Description
This adds a language change that requires references from typealiases to the enclosing module to be
const.This is required because typealiases are not late-bound.
Rationale is laid out in SPICE-0007.
Also:
Project.pkl; mark methodconstto not break said rule.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.