Skip to content
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

[SR-1960] typealias in extension may not work depending on the compile order. #44569

Closed
swift-ci opened this issue Jul 1, 2016 · 0 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Jul 1, 2016

Previous ID SR-1960
Radar None
Original Reporter nh7a (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 889863ce2033f9cc73b7dc52d4ee8add

duplicates:

  • SR-631 Extensions in different files do not recognize each other

Issue Description:

When I have code like below in a file,

extension NSObject {
    typealias Name = String
}

I should be able to use the type somewhere else like below,

extension NSObject.Name {
    static let b = NSObject.Name("b")
}

but it can fail by "'Name' is not a member type of 'NSObject'" depending on the compile order.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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.
Projects
None yet
Development

No branches or pull requests

1 participant