[SR-2772] Objective-C compatibility header exposes private extensions outside its module. #45376
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
PrintAsClang
Area → compiler: The PrintAsClang library
Environment
Swift 2.3 and Swift 3.0
Additional Detail from JIRA
md5: 776f040bf9d73bba3a876663e807e071
relates to:
Issue Description:
A Swift module that defines private or internal extensions on a public Objective-C type will export that extension publicly through its `-Swift` compatibility header.
FooObjectExtensions.swift:
BarModule-Swift.h:
This is problematic because private dependencies are exposed as `@import`s to the outside through the compatiblity header. The compatibility header generator should remove extensions that have empty bodies.
The text was updated successfully, but these errors were encountered: