Skip to content

Conversation

@DougGregor
Copy link
Member

@DougGregor DougGregor commented Mar 1, 2024

To maintain source compatibility, SE-0352 does not open existentials with "self-conforming" type, such as any Error or existentials based on @objc protocols. The proposal specified that this behavior would change in Swift 6. Implement that behavior change, which can be enabled prior to Swift 6 with the upcoming feature ImplicitOpenExistentials (as documented in SE-0362).

Fixes #70873 / rdar://120902975.

To maintain source compatibility, SE-0352 does not open existentials
with "self-conforming" type, such as `any Error` or existentials based
on `@objc` protocols. The proposal specified that this behavior would
change in Swift 6. Implement that behavior change, which can be
enabled prior to Swift 6 with the upcoming feature
`ImplicitOpenExistentials` (as documented in SE-0362).

Fixes swiftlang#70873 / rdar://120902975.
@DougGregor DougGregor force-pushed the implicit-open-existentials-swift6 branch from 47f88fc to 6075de1 Compare March 1, 2024 20:06
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge March 1, 2024 20:07
@ahoppen ahoppen removed their request for review March 1, 2024 20:08
@DougGregor DougGregor merged commit e5f80d1 into swiftlang:main Mar 1, 2024
@DougGregor DougGregor deleted the implicit-open-existentials-swift6 branch March 1, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opening existential metatype does not work for @objc protocols.

1 participant