Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jextract must handle "sibling" types while extracting #209

Open
ktoso opened this issue Jan 23, 2025 · 0 comments
Open

jextract must handle "sibling" types while extracting #209

ktoso opened this issue Jan 23, 2025 · 0 comments

Comments

@ktoso
Copy link
Collaborator

ktoso commented Jan 23, 2025

For example file 1:

struct Hello {}

file 2:

struct HelloAgain {
  init(hello: Hello) {}
}

if we visit them in the order Hello, then HelloAgain things work fine.

If we happen to visit them HelloAgain first, then we'll reject importing the HelloAgain type because:

[info][JExtractSwift/Swift2JavaVisitor.swift:219](visit(_:)) Unable to import initializer due to unknown(IdentifierTypeSyntax
╰─name: identifier("Hello"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant