You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stephencelis opened this issue
Jun 23, 2024
· 1 comment
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.castingFeature: explicit casting (is, as, as? and as!)runtimeThe Swift Runtime
I would expect the test to pass, but instead an error is thrown.
Environment
swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered:
stephencelis
added
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
labels
Jun 23, 2024
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.castingFeature: explicit casting (is, as, as? and as!)runtimeThe Swift Runtime
Description
A common trick employed in Swift is to conform
Optional
to some protocol in order to work around a lack of parameterized extensions (see this pitch).This trick unfortunately broke in Swift 6.
Reproduction
Here's a test case:
Expected behavior
I would expect the test to pass, but instead an error is thrown.
Environment
swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: