-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
PrintAsClangArea → compiler: The PrintAsClang libraryArea → compiler: The PrintAsClang librarybugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itself
Description
Previous ID | SR-10043 |
Radar | rdar://problem/30613254 |
Original Reporter | @karwa |
Type | Bug |
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Bug, PrintAsObjC |
Assignee | None |
Priority | Medium |
md5: 6168953bdc874889834cacb6566f309a
Issue Description:
Given the following code:
import Foundation
enum NonObjC {
@objc public class ShouldBeExportableToObjC: NSObject {}
@objc(MyCustomName) public class AlsoShouldBe: NSObject {}
}
Swift does not generate a header entry for either nested class (using `-emit-objc-header-path`). It also does not return any warning or error indicating that exporting failed.
The nesting only affects the Swift name, not whether or not the types are representable in ObjC. I think these should be supported.
Metadata
Metadata
Assignees
Labels
PrintAsClangArea → compiler: The PrintAsClang libraryArea → compiler: The PrintAsClang librarybugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itself