Swift 6.1 regression in Sendable checking #78635
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The Swift 6.1 compiler does not compile code that compiles with the Swift 6.0 compiler.
Reproduction
Compile the code below from Xcode 16.2 (16C5032a) with swift-6.1-DEVELOPMENT-SNAPSHOT-2025-01-13-a.xctoolchain
(Note that
Foundation.DateFormatter
is declared as Sendable).Expected behavior
The code compiles, as it does with a Swift 6.0 compiler, because it is correct.
Environment
Development Snapshots swift-6.1-DEVELOPMENT-SNAPSHOT-2025-01-13-a
Additional information
This regression was found because Swift 6.1 can not compile https://github.com/groue/GRDB.swift/tree/v7.0.0-beta.6.
This kind of regression is supposed to be caught by https://github.com/swiftlang/swift-source-compat-suite, but unfortunately this is not possible: swiftlang/swift-source-compat-suite#963 :-/
The text was updated successfully, but these errors were encountered: