From a1c983e5b81868049ab0c2d067da3fd28893d7c0 Mon Sep 17 00:00:00 2001 From: prql-bot <107324867+prql-bot@users.noreply.github.com> Date: Tue, 11 Aug 2026 06:54:15 +0000 Subject: [PATCH 1/2] docs: changelog entry for enum duplicate declarations (#6164) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6ab4d4c68fb..2d42cea31466 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,13 @@ previously discarded a sibling `b.prql`. This is a small breaking change — programs that relied on the last declaration winning now fail to compile. (@prql-bot, #6150) +- Report duplicate declarations coming from an `enum` definition rather than + silently keeping the last one. An `enum` whose name is already taken now + reports `duplicate declarations of `, a repeated member reports + `duplicate declarations of .`, and `_self` is rejected as a + member name since it is the entry holding the type itself. This is a small + breaking change — enums that relied on the last declaration winning now fail + to compile. (@prql-bot, #6164) - Move all standard types into a dedicated `std.types` submodule in order to disambiguate between `type text` - `module text` and `type date` - `module date`. (@kgutwin, #6155) From 58a027f9818fb90c8f3c6a3d50498480b3432ad2 Mon Sep 17 00:00:00 2001 From: prql-bot <107324867+prql-bot@users.noreply.github.com> Date: Tue, 11 Aug 2026 07:01:39 +0000 Subject: [PATCH 2/2] docs: drop breaking-change note for unreleased enum --- CHANGELOG.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d42cea31466..14aa484dba2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,9 +15,7 @@ silently keeping the last one. An `enum` whose name is already taken now reports `duplicate declarations of `, a repeated member reports `duplicate declarations of .`, and `_self` is rejected as a - member name since it is the entry holding the type itself. This is a small - breaking change — enums that relied on the last declaration winning now fail - to compile. (@prql-bot, #6164) + member name since it is the entry holding the type itself. (@prql-bot, #6164) - Move all standard types into a dedicated `std.types` submodule in order to disambiguate between `type text` - `module text` and `type date` - `module date`. (@kgutwin, #6155)