Optional Checking of a Generic Type not working using swift 6.0 on Mac (swiftlang-6.0.0.3.300 clang-1600.0.20.10) #74282
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
noncopyable struct/enum
Feature → declarations: Noncopyable value type declarations
Description
When trying to check if a Type conforms to a protocol which is extending Optional it delivers wrong result.
Checking does not work when using swiftlang-6.0.0.3.300 clang-1600.0.20.10 with target MacOS
Code works as expected using swiftlang-6.0.0.3.300 clang-1600.0.20.10 with target iOS
Code works as expected using swiftlang-5.10.0.13 clang-1500.3.9.4 with target MacOS
Code works as expected using swiftlang-5.10.0.13 clang-1500.3.9.4 with target iOS
Reproduction
Expected behavior
using swiftlang-6.0.0.3.300 clang-1600.0.20.10 and target MacOS it should work like in swift 5.10 or like target iOS
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: