Skip to content

[Serialization] Follow compatibility typealiases for non-generic types #16618

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 1 commit into from
May 15, 2018

Conversation

jrose-apple
Copy link
Contributor

Now that we use the C names of imported types in mangled names, it's safe to resolve a compatibility alias when a type gets an NS_SWIFT_NAME for the first time, rather than requiring the developer to recompile the imported library.

This doesn't include generic types, which only applies for Objective-C generics. There shouldn't be additional complications here but I want to be extra careful.

rdar://problem/39661212

Now that we use the C names of imported types in mangled names, it's
safe to resolve a compatibility alias when a type gets an
NS_SWIFT_NAME for the first time, rather than requiring the developer
to recompile the imported library.

This doesn't include generic types, which only applies for Objective-C
generics. There shouldn't be additional complications here but I want
to be extra careful.

rdar://problem/39661212
@jrose-apple jrose-apple requested a review from DougGregor May 15, 2018 02:45
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple jrose-apple merged commit ec90545 into swiftlang:master May 15, 2018
@jrose-apple jrose-apple deleted the follow-the-leader branch May 15, 2018 17:04
jrose-apple added a commit to jrose-apple/swift that referenced this pull request May 15, 2018
swiftlang#16618)

Now that we use the C names of imported types in mangled names, it's
safe to resolve a compatibility alias when a type gets an
NS_SWIFT_NAME for the first time, rather than requiring the developer
to recompile the imported library.

This doesn't include generic types, which only applies for Objective-C
generics. There shouldn't be additional complications here but I want
to be extra careful.

rdar://problem/39661212
(cherry picked from commit ec90545)
kitasuke pushed a commit to kitasuke/swift that referenced this pull request Jun 9, 2018
swiftlang#16618)

Now that we use the C names of imported types in mangled names, it's
safe to resolve a compatibility alias when a type gets an
NS_SWIFT_NAME for the first time, rather than requiring the developer
to recompile the imported library.

This doesn't include generic types, which only applies for Objective-C
generics. There shouldn't be additional complications here but I want
to be extra careful.

rdar://problem/39661212
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.

2 participants