You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit 75abee8f4588d2b120b2cd7a7c7e74fe2079dddd
Author: Xi Ge <xi_ge@apple.com>
Date: Thu Mar 19 11:41:07 2020 -0700
ModuleInterface: skip override keywords when overriding an invisible decl from super class
When we are printing Swift interface, we have to skip the override keyword
if the overriden decl is invisible from the interface. Otherwise, an error
will occur while building the Swift module because the overriding decl
doesn't override anything.
We couldn't skip every `override` keywords because they change the
ABI if the overriden decl is also publicly visible.
For public-override-internal case, having `override` doesn't have ABI
implication. Thus we can skip them.
rdar://58562780
Attachment: Download
Environment
xcode 11.4
Additional Detail from JIRA
md5: 485d122dc3a2637b646b6e8fa436f14c
Issue Description:
Problem
The generated module interface file below will got an error when parsed by xcode.
("A" is the name of the framework)
Source code
Steps to Reproduce
build a framework with the source above, with "Build Libraries for Distribution" enabled
delete the .swiftinterface files in the framework
add the generated framework to another project, import and build
Why Important
The module interface cannot be used , which means module stability never achieve its goal.
The text was updated successfully, but these errors were encountered: