Skip to content

[4.2][ClangImporter] Forward generic parameters while importing generic @compability_alias #17198

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

Merged
merged 2 commits into from
Jun 14, 2018

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 14, 2018

When importing @compatibility_alias declarations check if underlying declaration
is generic and if so, forward generic environment and generic parameters (if any)
to newly created typealias declaration, otherwise there is going to be a mismatch
between type associated with typealias and its declaration which leads to crashes.

Resolves: rdar://problem/39849926

xedin added 2 commits June 14, 2018 00:10
…ompatibility_alias

When importing @compatibility_alias declarations check if underlying declaration
is generic and if so, forward generic environment and generic parameters (if any)
to newly created typealias declaration, otherwise there is going to be a mismatch
between type associated with typealias and its declaration which leads to crashes.

Resolves: rdar://problem/39849926
(cherry picked from commit 094949a)
While trying to import declaration which requires renaming forward
generic parameters (if any) to newly created typealias.

(cherry picked from commit 1f3714f)
@xedin
Copy link
Contributor Author

xedin commented Jun 14, 2018

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 14, 2018

@swift-ci please test source compatibility

@xedin xedin merged commit 5d69867 into swiftlang:swift-4.2-branch Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant