From 31fc8d8fde3d19af190eeae0e4bcb3c514667dd2 Mon Sep 17 00:00:00 2001 From: Anthony Latsis Date: Wed, 6 Dec 2023 09:32:56 +0300 Subject: [PATCH] Record #70065 in the changelog --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68a2777684d56..e3ed30681ac23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,19 @@ > **Note**\ > This is in reverse chronological order, so newer entries are added to the top. +* [#70065][]: + + With the implementation of [SE-0110][], a closure parameter syntax consisting + of only a parameter type — and no parameter name — was accidentally made legal + for certain unambiguous type syntaxes in Swift 4. For example: + + ```swift + let closure = { ([Int]) in } + ``` + + Having been [gated](https://github.com/apple/swift/pull/28171) behind a + compiler warning since at least Swift 5.2, this syntax is now rejected. + ## Swift 5.9.2 * [SE-0407][]: @@ -9889,4 +9902,5 @@ using the `.dynamicType` member to retrieve the type of an expression should mig [#57081]: [#57225]: [#56139]: +[#70065]: [swift-syntax]: https://github.com/apple/swift-syntax