Skip to content

jextract closure support should not specialize () -> () and () -> T shapes, and just use Runnable and Supplier #811

Description

@ktoso

That's idiomatic Java types to use for these situations and we can save ourselves some codegen by doing so.

So when we see

func test(a: () -> ()) 

We should make that Runnable rather than generate an one-off type for this.

The same for Supplier probably

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:jextractIssues related to jextract-swift

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions