Skip to content

[SR-6232] Bogus diagnostic: 'X' does not have a member type named 'XXX'; did you mean 'XXX' #48784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
slavapestov opened this issue Oct 27, 2017 · 5 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself

Comments

@slavapestov
Copy link
Contributor

Previous ID SR-6232
Radar rdar://problem/35730965
Original Reporter @slavapestov
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @DougGregor
Priority Medium

md5: aeb9a0d8418dfab5ba0e77147f17e8f0

Issue Description:

extension Collection { typealias XXX = Int }

func foo<X : Collection>(_: X.XXX, _: X) {}
@belkadan
Copy link
Contributor

This is hardly the only problem with typealiases in protocol extensions…

@airspeedswift
Copy link
Member

This is blocking making #12641 source-compatible for people already writing IndexDistance == Int (unless there’s another way of giving access to IndexDistance to Collection adopters)

@slavapestov
Copy link
Contributor Author

I think the problem is that when the GSB looks up members it passes 'ignoreNewExtensions' to lookupDirect(), to solve circularity issues. We could change this back if we solve the underlying circularity.

@airspeedswift
Copy link
Member

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@slavapestov
Copy link
Contributor Author

This was fixed a while ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself
Projects
None yet
Development

No branches or pull requests

3 participants