Enhancing Diagnostics for Accessing Member Types within Existential Metatypes #73420
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Context: https://forums.swift.org/t/metatype-casting-and-member-access-type-ambiguity-error/71456
Here, no type annotation would make it work:
Type of expression is ambiguous without a type annotation
Thanks to @slavapestov for sharing a helpful workaround and taking his suggestion, creating this issue to advocate for improved diagnostics for the above case.
Reproduction
Context: https://forums.swift.org/t/metatype-casting-and-member-access-type-ambiguity-error/71456
Expected behavior
Diagnostics talking about using a recommended way to open existentials to avoid the above issue.
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Additional information
No response
The text was updated successfully, but these errors were encountered: