Skip to content

Code in conditional compilation branches is not exported #538

@abdulowork

Description

@abdulowork

Reproduction

This is likely a known issue, but I didn't find mentions in the issues yet. Basically, from the following code:

#if FOO
public func first() {}
#else
public func second() {}
#endif

public func third() {}

only the third function is exported by jextract as of 5764bc2a1b706056121109dc0ab14fd3d771cbc5

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:jextractIssues related to jextract-swift

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions