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

wit: unexpected error when referencing the package itself in exports #1809

Open
Mossaka opened this issue Sep 19, 2024 · 0 comments
Open

wit: unexpected error when referencing the package itself in exports #1809

Mossaka opened this issue Sep 19, 2024 · 0 comments

Comments

@Mossaka
Copy link
Member

Mossaka commented Sep 19, 2024

Consider this WIT:

package example:name;
world only-exports {
  export example:name/exports;
  export exports: interface {
      foo: func();
  }
}

However, when processing this with wasm-tools, it throws the following error:

error: package depends on itself
     --> testdata/issues/issue170.wit:8:10
      |
    8 |   export example:name/exports;
      |          ^-----------

Expected Behavior: The interface name with the WorldKey should reference the first export without throwing an error.

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