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

glob import is too restrictive #869

Open
Y-Nak opened this issue Apr 17, 2023 · 0 comments
Open

glob import is too restrictive #869

Y-Nak opened this issue Apr 17, 2023 · 0 comments
Labels
v2-resolve This issue will be resolved in fe-v2 implementation

Comments

@Y-Nak
Copy link
Collaborator

Y-Nak commented Apr 17, 2023

Glob import doesn't work if the imported module contains a private item.

Example

// main.fe
use bar::*

// bar.fe
pub struct PubS {}
struct PrivS {}

output

error: struct PrivS is private
  ┌─ demo/src/main.fe:1:5
  │
1 │ use foo::*
  │     ^^^ PrivS
@Y-Nak Y-Nak added the v2-resolve This issue will be resolved in fe-v2 implementation label Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2-resolve This issue will be resolved in fe-v2 implementation
Projects
None yet
Development

No branches or pull requests

1 participant