Skip to content

[swift2objc] Extensions of nested types #3258

@liamappelbe

Description

@liamappelbe

Currently we output extensions in the same scope as the thing they're extending. But Swift doesn't allow extensions to be nested. So if someone writes an extension of a nested type, we get invalid codegen. Instead we should pull all extensions to the top level scope.

Follow up to #3236

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good starting issue for contributors (issues with this label will appear in /contribute)lang-swiftRelated to Swift supportpackage:swift2objc

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions