Name lookup of typealias in protocol inconsistent for nested types #72461
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
generics
Feature: generic declarations and types
name lookup
Area → compiler → type checker: Name lookup
type checker
Area → compiler: Semantic analysis
Description
A typealias is respected for the initializer of a type, but not the type annotation, when it is nested in a protocol.
Reproduction
Expected behavior
This should compile; the meaning of
UUID
should have changed in both locations.Environment
Swift 5.9, Xcode 15.3.
Additional information
No response
The text was updated successfully, but these errors were encountered: