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-1963] @compatibility_alias should be imported as a typealias #44572

Closed
CodaFi opened this issue Jul 1, 2016 · 1 comment
Closed

[SR-1963] @compatibility_alias should be imported as a typealias #44572

CodaFi opened this issue Jul 1, 2016 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself good first issue Good for newcomers

Comments

@CodaFi
Copy link
Member

CodaFi commented Jul 1, 2016

Previous ID SR-1963
Radar None
Original Reporter @CodaFi
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, ClangImporter, StarterBug
Assignee ayaka (JIRA)
Priority Medium

md5: a4dd9cf7f99b41ceb03f8bffa9aa38a1

Issue Description:

Current behavior is to look through any '@compatibility_alias'es that are encoutered, but this means that it is impossible to express something like

import typealias Foo.AliasedThing

The fix is to make the importer actually generate a `TypeAliasDecl` import rather than just returning nullptr. See lib/ClangImporter/ImportDecl.cpp.

@swift-ci
Copy link
Collaborator

Comment by Elliot Lee (JIRA)

By ayaka (JIRA User): bd4996e 🙂

@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. compiler The Swift compiler in itself good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants