Unexpected ambiguous type error when assigning to conforming primary associated type #72977
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
In the following example I have a protocol type "B" that conforms to a protocol type "A". As soon as I try to assign a function result of type "any B" to a variable of type "any A", the compiler responds with a "Type of expression is ambiguous" error.
Reproduction
Expected behavior
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: