Skip to content

#[swift_bridge(already_declared) not working properly when used in structs #364

Description

@RinLovesYou

As the title suggests it complains about not finding types when using already_declared

#[swift_bridge::bridge]
mod ffi1 {
    #[swift_bridge(swift_repr = "struct")]
    struct Foo {
        some_value: i32
    }
}

use ffi1::Foo;

#[swift_bridge::bridge]
mod ffi2 {
    #[swift_bridge(already_declared, swift_repr = "struct")]
    struct Foo;

    struct Bar {
        foo: Foo, //cannot find type `Foo` in this scope
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions